Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/starxsoft/lib/common/CommonUtils$1.class
My apps gradle file is here , I have google too many answers but didn't find an appropriate.
Here I am using two .aar files which are containing a same class "CommonUtils", and the aars are as :
- common_library-release.aar
- DeveloperCommonModule-release.aar
So How can i modify the gradle file to get rid of the problem. And the error is occurring only on API level 19.
defaultConfig {
applicationId "com.android4dev.navigationview"
minSdkVersion 18
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
and dependencies are:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'de.hdodenhof:circleimageview:1.3.0'
compile(name:'wizard_guide_library.1.0.1-release', ext:'aar')
compile(name:'common_library-release', ext:'aar')
compile(name:'widget_library-release', ext:'aar')
compile 'com.android.support:cardview-v7:23.2.+'
compile 'com.github.traex.rippleeffect:library:1.3'
compile(name: 'DeveloperCommonModule-release', ext: 'aar')
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.google.android.gms:play-services-appindexing:8.1.0'
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha8'
compile 'com.android.support:percent:23.2.0'
}