Start a new topic

Facing error java.util.zip.ZipException: duplicate entry

Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'.

> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/kinvey/java/AbstractClient$Builder$Option.class



I am facing this problem . When I remove this from build gradle compile 'com.android.support:appcompat-v7:23.1.1'


That error Fixes but other functions dont work properly.


I have a similar problem
Error:
Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/kinvey/android/AbstractAsyncUser$1.class

Not able to fix it

My dependencies:

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.google.android.gms:play-services:8.4.0'
compile(name:'kinvey-android-2.10.4', ext:'aar') }
Not sure where the problem lies.

 

@Bruce, can you screen shot your "libs" folder for me to see? I want to see which file you copied into "libr" folder.

can u paste your dependencies here for let us check?


this is my dependencies


please make sure your library only have "java-api-core-2.10.5" one jar file and not contain "java-api-core-2.10.5" and "java-api-core-2.10.1" at the same time, if your library have two these file together, please delete "java-api-core-2.10.1"


dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:multidex:1.0.0'
compile 'com.android.support:support-v4:23.0.0+'
compile(name: 'kinvey-android-lib-2.10.5', ext: 'aar')
}
Login or Signup to post a comment