Android CardView依赖项链接失败

Android CardView依赖项链接失败,android,android-studio,dependencies,android-cardview,Android,Android Studio,Dependencies,Android Cardview,以下是我尝试同步它的不同方式: I want to display a dialog box to display a message along with two buttons (SignIn and Close). But it's giving me a Resource Linking Failed error. though I have a dependency of cardview in my build gradle file (app). Application runs

以下是我尝试同步它的不同方式:

I want to display a dialog box to display a message along with two buttons (SignIn and Close). But it's giving me a Resource Linking Failed error. though I have a dependency of cardview in my build gradle file (app). Application runs with zero errors but build is failing. 
以下是事件日志中的错误: 上午9:25仿真程序:仿真程序:警告:更新检查:失败:错误

上午9:26梯度生成在1米15秒453毫秒内失败

上午9:26仿真程序:仿真程序:警告:AsyncSocketServer.cpp:99:接受主机连接时出错错误消息:未知错误

上午9:26在项目C:\Users\Maryam\AndroidStudioProjects\Sign\u中执行任务:[:app:assembleDebug]

上午9:26 Gradle构建在18秒154毫秒内失败

上午9:26生成APK:生成APK时出错。您可以在“消息”视图中找到错误

上午9时29分,渐变同步已启动,使用单变量同步

上午9:30 Gradle同步失败:在org.Gradle.api.internal.artifacts.dsl.dependency.DefaultDependencyHandler类型的对象上找不到参数[com.android.support:cardview-v7:26.+]的方法implemantation()。(8 s 722 ms) 这是我的构建梯度文件:

implementation 'com.android.support:cardview-v7:+'
implementation 'com.android.support:cardview-v7:28.0.0-alpha3'
compile 'com.android.support:cardview-v7:28.0.0'

你运行的是哪个版本?发布你的版本。Gradle文件我已经编辑了我的帖子。请看一看。
apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId "com.example.sign_up"
        minSdkVersion 15
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
    implementation 'androidx.vectordrawable:vectordrawable:1.0.1'
    implementation 'androidx.navigation:navigation-fragment:2.0.0'
    implementation 'androidx.navigation:navigation-ui:2.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
    implementation 'androidx.gridlayout:gridlayout:1.0.0'
    implementation 'com.android.support:cardview-v7:+'
}