我正在更新我的应用程序以支持材料主题(我的应用程序使用Google Play服务)
当我同步我的项目时,出现了这个:
...\app\build\intermediates\exploded-aar\com.google.android.gms\play-services\6.1.11\res\values\wallet_colors.xml
Error:Attribute "showText" has already been defined
我的 Gradle 依赖:
compile 'com.android.support:appcompat-v7:21.0.0'
compile 'com.google.android.gms:play-services:6.1.11'
// the latest version of play-services is 6.1.11
如果我排除appcompat-v7,那么项目就可以编译通过。
我是不是对Lollipop太兴奋了,没有仔细阅读文档?我该如何解决这个问题?
构建脚本的一部分:
compileSdkVersion 21
buildToolsVersion '21.0.1'
dexOptions {
preDexLibraries true
//incremental true
}
defaultConfig {
minSdkVersion 14
targetSdkVersion 21
versionCode 11
versionName '1.0'
renderscriptTargetApi 21
renderscriptSupportMode true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
本地 Google 存储库长这样:
compile 'com.google.android.gms:play-services:6.1.+'
- Olegas Gončarovas