0
Я знаю, что этот вопрос задан очень много. Но я не могу решить эту проблему. Я новичок, помоги мне. Итак, есть код в моей Gradle сборки:Атрибут ошибки уже определен
dependencies { compile 'com.android.support:support-v4:18.0.0' compile 'com.google.android.gms:play-services:+' compile 'com.actionbarsherlock:actionbarsherlock:[email protected]' compile 'com.android.support:support-v4:18.0.0' compile files('libs/StartAppInApp-2.4.7.jar') }
и это моя ошибка:
Error:(160) Attribute "background" already defined with incompatible format. Error:(14) Original attribute defined here. Error:(197) Attribute "navigationMode" already defined with incompatible format. Error:(160) Original attribute defined here. Error:(197) Attribute "displayOptions" already defined with incompatible format. Error:(160) Original attribute defined here. Error:(212) Attribute "windowMinWidthMajor" already defined with incompatible format. Error:(206) Original attribute defined here. Error:(212) Attribute "windowMinWidthMinor" already defined with incompatible format. Error:(206) Original attribute defined here. Error:(212) Attribute "actionBarSize" already defined with incompatible format. Error:(206) Original attribute defined here. Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Truc\AppData\Local\Android\Sdk\build-tools\24.0.1\aapt.exe'' finished with non-zero exit value 1
Спасибо!
Спасибо, я пробовал сделать это, но это не работает для меня. Я думаю, что эта ошибка появилась, потому что actionbarsherlock, но я не знаю, как это исправить. – htantruc
Обязательно ли вы использовать actionbarsherlock? Вы можете использовать AppCompat для более актуальной панели действий. Взгляните: http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html – RamithDR