升級到Studio 2.1和建築對API 23後收到此錯誤:的Android Studio錯誤:執行失敗的任務 ':flypandroid:transformClassesWithJarMergingForDebug'
Error:Execution failed for task ':flypandroid:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/annotation/NonNull.class
我曾嘗試:
建設 - >清潔
和
gradelw乾淨
configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
all*.exclude group: 'com.google.android.gms', module: 'play-services'
all*.exclude group: 'com.android.annotation'
}
沒有任何工作。
看着libs中的所有罐子,只有android-support-v13.jar有NonNull類。
這裏是我的依賴列表:
dependencies {
compile project(':newQuickAction')
compile project(':emojicon')
compile project(':newQuickAction')
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/android-viewbadger.jar')
compile files('libs/apache-mime4j-core-0.7.2.jar')
compile files('libs/aternity_sdk-7.2.jar')
compile files('libs/commons-lang-2.5.jar')
compile files('libs/commons-net-ftp-2.0.jar')
androidTestCompile files('libs/crittercism_v4_5_4_sdkonly.jar')
compile files('libs/emojitextview.jar')
compile files('libs/flypsi-0.0.1.jar')
compile files('libs/google-play-services.jar')
compile files('libs/httpmime-4.2.6.jar')
compile files('libs/libphonenumber-5.2.jar')
compile files('libs/localytics.jar')
compile files('libs/prettytime.jar')
compile files('libs/Pubnub-Android-3.7.4.jar')
compile files('libs/PubnubCrypto.jar')
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
compile fileTree(include: 'Parse-*.jar', dir: 'libs')
compile files('libs/tapjoyconnectlibrary.jar')
compile files('libs/flyp-domain-1.12.0.jar')
compile 'com.google.code.gson:gson:2.4'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:design:23.3.0'
compile 'com.android.support:cardview-v7:23.3.0'
compile 'com.android.support:recyclerview-v7:23.3.0'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.google.android.gms:play-services-identity:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'org.apache.httpcomponents:httpcore:4.2.1'
compile files('libs/httpclient-4.5.2.jar')
compile files('libs/flyp-util-1.1.0.jar')
compile files('libs/android-support-v13.jar')
}