Start a new topic

Facing error duplicate entry

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

> duplicate entry: com/kinvey/java/AbstractClient$Builder$Option.class

I am facing this problem . When I remove this from build gradle compile ''

That error Fixes but other functions dont work properly.

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 ''
compile ''
compile ''
compile ''
compile(name: 'kinvey-android-lib-2.10.5', ext: 'aar')
I have a similar problem
Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> 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 ''
compile ''
compile ''
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.

Login or Signup to post a comment