更新支持库后的 ActionBarSherlock 依赖问题
ActionBarSherlock dependency issue after updating support libraries
我通过 Android SDK 管理器更新了一些支持库,现在我假设的 ActionBarSherlock 和支持库之间存在冲突。请参阅下面的 error.This 片段在 Android Studio 1.2.2
中
C:\Android\Games\Copy of MyProject1\MyProject\build\intermediates\exploded-aar\com.google.android.gms\play-services-wallet.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 文件:
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'
}
}
我已经尝试删除支持库依赖项,但这并没有解决问题。
据我所知,最新版本的 Google Play 服务附带 appcompact-v7
。这意味着您将无法同时使用 Play 服务(最新版本)和 ActionbarSherlock
。我建议从 ABS
迁移到 AppCompact
或不使用最新版本的 Play Services
我通过 Android SDK 管理器更新了一些支持库,现在我假设的 ActionBarSherlock 和支持库之间存在冲突。请参阅下面的 error.This 片段在 Android Studio 1.2.2
中C:\Android\Games\Copy of MyProject1\MyProject\build\intermediates\exploded-aar\com.google.android.gms\play-services-wallet.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 文件:
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'
}
}
我已经尝试删除支持库依赖项,但这并没有解决问题。
据我所知,最新版本的 Google Play 服务附带 appcompact-v7
。这意味着您将无法同时使用 Play 服务(最新版本)和 ActionbarSherlock
。我建议从 ABS
迁移到 AppCompact
或不使用最新版本的 Play Services