问题描述
我通过Android SDK管理器更新了一些支持库,现在有什么之间我认为是ActionBarSherlock和支持库的冲突。请参见下面的error.This段是Android Studio中1.2.2
I updated some support libraries through the Android SDK manager, and now there is a conflict between what I assume is ActionBarSherlock and a support library. See below snippet of error.This is in Android Studio 1.2.2
C:\Android\Games\Copy of MyProject1\MyProject\build\intermediates\exploded-aar\com.google.android.gms\play-services-wallet\7.5.0\res\values\wallet_colors.xml
Error:(1) Attribute "titleTextStyle" has already been defined
Error:(1) Attribute "subtitleTextStyle" has already been defined
Error:(1) Attribute "divider" has already been defined
Error:(1) Attribute "background" has already been defined
Error:(1) Attribute "backgroundSplit" has already been defined
Error:(1) Attribute "navigationMode" has already been defined
Error:(1) Attribute "displayOptions" has already been defined
Error:(1) Attribute "title" has already been defined
Error:(1) Attribute "subtitle" has already been defined
Error:(1) Attribute "icon" has already been defined
Error:(1) Attribute "logo" has already been defined
Error:(1) Attribute "backgroundStacked" has already been defined
我的文件的gradle:
My gradle file:
apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:17'
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.mdflip.areyoudrunk"
minSdkVersion 9
targetSdkVersion 17
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile project(':ChartViewLib')
compile 'com.google.android.gms:play-services:+'
compile 'com.android.support:support-v4:22.0.0'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile('com.google.api-client:google-api-client-xml:1.17.0-rc') {
exclude group: 'com.google.android.google-play-services'
}
}
我曾尝试删除支持库的依赖,但没有弄清楚的问题。
I have tried removing the support library dependency, but that did not clear up the issue.
推荐答案
据我所知,最新的谷歌Play版本的服务配备了 appcompact-V7
。这意味着你将不能在同一时间使用两种播放服务(最新版本)和 ActionbarSherlock
。我建议迁移到 AppCompact
从 ABS
或不使用最新版本的播放的服务
AFAIK, latest version of the Google Play services come with appcompact-v7
. That means you won't be able to use both Play Services (latest version) and ActionbarSherlock
in the same time. I'd suggest to migrate to AppCompact
from ABS
or not use the latest version of Play Services
这篇关于ActionBarSherlock依赖的问题在更新支持库后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!