java.util.zip.ZipException: duplicate entry: android/support/v4/accessibilityservice/AccessibilityServiceInfoCompatJellyBeanMr2.class -
i integrating project app in android studio shows below error, googling issue no use.
error:execution failed task ':app:packagealldebugclassesformultidex'. > java.util.zip.zipexception: duplicate entry: android/support/v4/accessibilityservice/accessibilityserviceinfocompatjellybeanmr2.class
below 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 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') }
if have android-support-v4.jar in libs folder.. delete it!
that solved problem.
even though file not added in build.gradle file.. gradle includes in build anyway.
Comments
Post a Comment