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.


Thanks,


Michael


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).


Michael

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


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

> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: 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).


Michael

@Sam. If you refer to MP Rogers post: it was easy to find a solution by using google seehttp://stackoverflow.com/questions/29756188/java-finished-with-non-zero-exit-value-2-android-gradle After fixing this error i later suddenly ran into an almost similar error but with exit value 3 (instead of 2). Fix here http://stackoverflow.com/questions/30483827/android-studio-java-exe-finished-with-non-zero-exit-value-3

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
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


 

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