当我将 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 主题属性冲突。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)