Esri SDK with gradle build system

2432
3
12-27-2013 08:18 AM
ThomasBinu
New Contributor III
Hi guys,

Is is possible to use the ArcGIS SDK using the new gradle build system?

Thanks,
Thomas
0 Kudos
3 Replies
AndrewWang
New Contributor
Yes, for example if you are using Google's Android Studio, create a new folder called libs and copy over all the esri library files.
Then go into the build.gradle file and add in the lines:

dependencies {
    compile fileTree(dir: 'libs', include:'*.jar')
}

[ATTACH=CONFIG]30130[/ATTACH]
0 Kudos
ThomasBinu
New Contributor III
Thanks you Andrew. I noticed in your screenshots that, you have x86.jar and armebi.jar in your libs folder. How did you convert the .so files(that you get when you extract the sdk zip package) to .jar files?

thanks
Thomas


edit:Nevermind, I think I figured it out. I zipped the folder containing the .so files and changed the extension to .jar. But when i run the app, it crashes in the layout xml because of classdef not found error.
0 Kudos
hungNguyen2
New Contributor
useful information. Thank you very much
0 Kudos