这是我的项目代码,我收到错误
无法解决:编译' com.android.support:cardView-v7:25.3.1'
我重新安装了Android支持存储库(第47版),但它没有工作,仍然给我错误。
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
minSdkVersion 17
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.4.0'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
compile 'com.android.support:design:25.3.1'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:support-vector-drawable:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:support-core-utils:25.4.0'
compile 'com.android.support:cardView-v7:25.3.1'
testCompile 'junit:junit:4.12'
}
答案 0 :(得分:2)
你在cardview中大写'v'。
更改
compile 'com.android.support:cardView-v7:25.3.1'
到
compile 'com.android.support:cardview-v7:25.3.1'
在旁注中,请对单个组中的所有依赖项使用相同的版本。例如,对组com.android.support