getting following error while generatin apk in android studio
error:execution failed task ':app:transformclasseswithjarmergingfordebug'. > com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: org/apache/commons/collections/arraystack.class
here gradle.build file
buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' apply plugin: 'realm-android' apply plugin: 'com.neenbedankt.android-apt' android { compilesdkversion 24 buildtoolsversion "24" // uselibrary 'org.apache.http.legacy' defaultconfig { applicationid "com.gogetapps.uternity" minsdkversion 18 targetsdkversion 24 versioncode 5 versionname "0.1" multidexenabled true } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } packagingoptions { exclude 'meta-inf/dependencies.txt' exclude 'meta-inf/license.txt' exclude 'meta-inf/notice.txt' exclude 'meta-inf/notice' exclude 'meta-inf/license' exclude 'meta-inf/dependencies' exclude 'meta-inf/notice.txt' exclude 'meta-inf/license.txt' exclude 'meta-inf/dependencies.txt' exclude 'meta-inf/lgpl2.1' } configurations { all*.exclude group: 'org.apache.httpcomponents' all*.exclude group: 'org.apache.commons' all*.exclude group: 'org.apache.commons' } } repositories { maven { url "https://jitpack.io" } maven { url 'https://maven.fabric.io/public' } } dependencies { testcompile 'junit:junit:4.12' apt 'com.jakewharton:butterknife-compiler:8.0.1' compile('com.google.android.gms:play-services:9.0.2') { exclude group: 'com.google.guava' } compile 'dev.dworks.libs:volleyplus:+' compile project(':cmediaplayer') compile 'com.jakewharton:butterknife:8.0.1' compile 'com.android.support:percent:24.0.0' compile 'com.android.support:appcompat-v7:24.0.0' compile 'com.android.support:design:24.0.0' compile ('com.android.support:support-v4:24.0.0') { force = true } compile 'com.android.support:multidex:1.0.1' compile 'com.github.jkwiecien:easyimage:1.2.3' compile 'com.mukesh:countrypicker:1.1.3' compile 'com.sa90.materialarcmenu:library:1.4.1' compile 'se.emilsjolander:stickylistheaders:2.7.0' compile 'com.makeramen:roundedimageview:2.2.1' compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' compile('commons-validator:commons-validator:1.4.1') { exclude group: 'commons-logging' } compile('commons-io:commons-io:2.5') { exclude group: 'commons-logging' } compile('commons-lang:commons-lang:2.2') { exclude group: 'commons-logging' } compile 'com.timehop.stickyheadersrecyclerview:library:0.4.3' compile 'com.github.curioustechizen.android-ago:library:1.3.2' compile 'com.squareup.picasso:picasso:2.5.2' compile 'net.alhazmy13.mediapicker:libary:2.1.4' compile 'com.baoyz.swipemenulistview:library:1.3.0' compile 'com.nononsenseapps:filepicker:2.5.3' compile 'com.writingminds:ffmpegandroid:0.3.2' compile 'com.kbeanie:image-chooser-library:1.5.8@aar' compile 'me.zhanghai.android.materialprogressbar:library:1.1.7' compile 'com.github.deano2390:materialshowcaseview:1.1.0' compile 'com.github.barteksc:android-pdf-viewer:1.4.0' compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.+' compile('com.crashlytics.sdk.android:crashlytics:2.6.1@aar') { transitive = true; } }
this link dependency map. dependency map
Comments
Post a Comment