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.
Not sure where the problem lies
compile fileTree(dir: 'libs', include: ['*.jar'])
compile(name:'kinvey-android-2.10.4', ext:'aar') }
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'.
> 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:
Sorry for all the postings, but hopefully someone will find this useful (and perhaps the docs can be updated to reflect reality).
Thank you Sunny, sorry I was just frustrated and didn't do as much research as I wanted!