我正在使用Google Play服务获取位置服务,我收到以下错误:
Error:Attribute "theme" has already been defined
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/Applications/adt-bundle-mac-x86_64-20140321/sdk/build-tools/21.1.2/aapt package -f --no-crunch -I /Applications/adt-bundle-mac-x86_64-20140321/sdk/platforms/android-21/android.jar -M /Users/markthien/android/sponseer/app/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /Users/markthien/android/sponseer/app/build/intermediates/res/debug -A /Users/markthien/android/sponseer/app/build/intermediates/assets/debug -m -J /Users/markthien/android/sponseer/app/build/generated/source/r/debug -F /Users/markthien/android/sponseer/app/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package sponseer.com.sponseer -0 apk --output-text-symbols /Users/markthien/android/sponseer/app/build/intermediates/symbols/debug
Error Code:
1
Output:
/Users/markthien/android/sponseer/app/build/intermediates/res/debug/values/values.xml:119: error: Attribute "theme" has already been defined
我的build.gradle就像
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.+'
compile 'com.google.android.gms:play-services-location:6.5.+'
compile 'io.nlopez.smartlocation:library:2.0.7'
}
我一直在搜索这里和谷歌,但仍然无法解决它。有人说游戏服务和appcompat之间的属性“主题”是冲突的。我尝试改为
compile 'com.android.support:appcompat-v7:21.0.0'
但仍然相同。
我的gradle版本是
classpath 'com.android.tools.build:gradle:0.13.2'
请欣赏任何帮助。谢谢!
的问候, Mark Thien