Start a new topic

Android Documentation issue - libAARs ?

In the Getting Started documentation for Android, the instructions read:

"Copy all jars and the aar in the libsAAR/ folder of the Kinvey Android library zip"

However, there is no such folder -- just libs.

I presume that I should use all those jar files, and this is probably a petty concern -- but I figure that Kinvey wants the instructions to be as precise as possible.



Also, the instructions say to use name:'kinvey-android-*'. However, it appears (at least based on my experience) that you need to replace the * with the exact version number (e.g., 2.10.5).


One more comment -- when I tried to run the program, it failed with this error:

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

> org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

I had to add the following line to default config in the build.gradle for the module:

         multiDexEnabled true 

Sorry for all the postings, but hopefully someone will find this useful (and perhaps the docs can be updated to reflect reality).


@Sam. If you refer to MP Rogers post: it was easy to find a solution by using google see After fixing this error i later suddenly ran into an almost similar error but with exit value 3 (instead of 2). Fix here

1 person likes this

Thank you Sunny, sorry I was just frustrated and didn't do as much research as I wanted!

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


sorry i am on my mbile so can only give you hints: the following line says that you compile all .jar files in the libs folder compile fileTree(dir: 'libs', include: ['*.jar']) Some of the .jar files delivered in the kinvey sdk cause this error and you need to remove them. not sure now which ones.
Login or Signup to post a comment