2015-07-02 2 views
1

Я обновил некоторые библиотеки поддержки через менеджер Android SDK, и теперь есть конфликт между тем, что я предполагаю, это ActionBarSherlock и библиотека поддержки. Ниже фрагмент error.This в Android Studio 1.2.2Проблема зависимости ActionBarSherlock после обновления библиотек поддержки

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 файл:

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:[email protected]' 
    compile('com.google.api-client:google-api-client-xml:1.17.0-rc') { 
     exclude group: 'com.google.android.google-play-services' 
    } 
} 

Я попытался удалить зависимость библиотеки поддержки, но это не проясняет вопрос.

ответ

2

AFAIK, последняя версия услуг Google Play поставляется с appcompact-v7. Это означает, что вы не сможете одновременно использовать как Play Services (последняя версия), так и ActionbarSherlock. Я предлагаю перейти на AppCompact с ABS или не использовать последнюю версию Play Services

Смежные вопросы