java.util.zip.ZipException:重复条目:android / support / v4 / accessibilityservice / AccessibilityServiceInfoCompatJellyBeanMr2.class [英] java.util.zip.ZipException: duplicate entry: android/support/v4/accessibilityservice/AccessibilityServiceInfoCompatJellyBeanMr2.class
本文介绍了java.util.zip.ZipException:重复条目:android / support / v4 / accessibilityservice / AccessibilityServiceInfoCompatJellyBeanMr2.class的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将我的项目整合到android工作室中的另一个应用程序中,但它显示了以下错误,我在搜索这个问题,但没有用。
I am integrating my project into another app in android studio but it shows the below error, I am googling the issue but no use.
Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: android/support/v4/accessibilityservice/AccessibilityServiceInfoCompatJellyBeanMr2.class
以下是我的应用依赖关系
below is my app dependencies
configurations { all*.exclude group: 'com.android.support', module: 'support-annotations' }
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':waleteros')
compile 'com.android.support:recyclerview-v7:+'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.jakewharton:butterknife:5.1.2'
compile files('src/libs/android_sync_service_library.jar')
compile "com.google.android.gms:play-services:3.1.+"
compile('com.crashlytics.sdk.android:crashlytics:2.2.2@aar') {
transitive = true;
}
这里是我的图书馆依赖关系
and here is my library dependencies
configurations { all*.exclude group: 'com.android.support', module: 'support-v4' }
configurations { all*.exclude group: 'com.android.support', module: 'support-annotations' }
dependencies {
compile project(':ingosdk')
compile 'com.google.code.gson:gson:2.2.4'
compile files('libs/A2iA.Mobility.jar')
compile files('libs/acra-4.5.0.jar')
compile files('libs/bugsense-3.5.jar')
compile files('libs/deviceprint-lib-1.0.0.jar')
compile files('libs/FlurryAnalytics-5.3.0.jar')
compile files('libs/httpmime-4.1.2.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
compile files('libs/volley.jar')
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile files('libs/android-support-v13.jar')
}
推荐答案
支持v4.jar在你的libs文件夹..删除它!
If you have the android-support-v4.jar in your libs folder.. delete it!
这解决了我的问题。
甚至虽然该文件没有添加到build.gradle文件中。gradle包括它在构建中。
Even though the file is not added in the build.gradle file.. gradle includes it in the build anyway.
这篇关于java.util.zip.ZipException:重复条目:android / support / v4 / accessibilityservice / AccessibilityServiceInfoCompatJellyBeanMr2.class的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文