当我将android studio升级到版本3时,出现了以下问题:
Error:(246, 5) error: duplicate value for resource 'attr/rippleColor' with config ''.
这是我的毕业证书:
android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.faravani.app"
minSdkVersion 16
targetSdkVersion 26
versionCode 4
versionName "2.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
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:26.1.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:26.1.0'
testCompile 'junit:junit:4.12'
}
请帮助我,我不知道该怎么办。
最佳答案
尝试重命名attr文件中的rippleColor属性(我认为是attrs.xml)。它可能与某些android theme属性冲突。