-
Notifications
You must be signed in to change notification settings - Fork 165
Steps to reference local ArcGIS runtime SDK for Android
I would like to provide following steps to reference local ArcGIS runtimer SDK for Android.
-
Download the SDK from Developers site: https://developers.arcgis.com/en/sign-in/
-
Create an Android project in Android Studio.
-
Add native libs:
3.a) Create a /src/main/jniLibs/ folder in your app module.
3.b) From the root of your SDK download directory, copy the /libs/[platform]/folder into the jniLibs folder created in the step above. Here, platform refers to the platform architecture your device is running (armeabi, armeabi-v7a, and x86). Total folders=3.
3.c) Copy jar files from <android-sdk)/libs/ folder to /app/libs/ folder. Total jar files=5. -
Update dependencies of your app's module.
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile fileTree(include: ['**'], dir: 'jniLibs')
compile 'com.android.support:appcompat-v7:22.2.0'
} -
Gradle may complain about duplicate files in your build apk. You can exclude those files by adding the packagingOptions directive to the android closure in your app module build.gradle file:
android {
...
packagingOptions {
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
}
-
Required permissions and features.
<manifest …..
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
….
</manifest>
- Forums
- Web and Mobile Runtime SDKs
- AppStudio sample style guide
- Services
- Layer Services
- Geoprocessing Services
- Servers
- Data Resources
- Windows Operating System
- Enable IIS Directory Browsing
- Creating a custom WKID
- Python Help
- Sharing Between ArcGIS Online Organizations
- Resources To Learn Git
- Working-with-Fonts