In order to develop Android applications, you must have the following software installed on your system:
The Java Development Kit is a prerequisite for Android Studio and Gradle.
The latest version which has been tested with this release is JDK 8u91, available from the Java Archive Downloads page: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
The latest JDK version is available here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Once downloaded and installed, add the environment variable JAVA_HOME and set its value to the JDK install location. For example, the value may be C:\Program Files\Java\jdk1.8.0_91, if you have installed the x64 version.
Based on the default installation path of Java SE 8u91, the correct syntax when using set from the command line is:
set JAVA_HOME=”C:\Program Files\Java\jdk1.8.0_91”
Additionally, add the JDK to the value of your PATH, e.g. C:\Program Files\Java\jdk1.8.0_91\bin
Android Studio is the recommended IDE and install manager for the Android SDK tools. Download the Android Studio bundle from: https://developer.android.com/studio/index.html
The Android Studio Development Bundle includes the basic tools you need to begin developing Java Android Applications:
Follow Android’s installation instructions: https://developer.android.com/studio/install.html?pkg=studio
To run any of the standalone build scripts that come with the Mobile SDK, you need to set the following environment variables:
You must download additional packages required by the Mobile SDK via the Android SDK Manager, found in Tools > Android > SDK Manager. Android Studio may prompt you to take this step automatically the first time you launch it.
The following packages are required for native development:
The Android Native Development Kit (NDK) is a toolset that allows you to implement parts of your app using native code languages such as C and C++. It is used extensively by the sample applications included with this release.
The last version of the NDK known to work with the Mobile SDK is r14b.
You must set up your system to detect your Android device over USB in order to run, debug, and test your application on an Android device.
If you are developing on Windows, you may need to install a USB driver for adb after installing the Android SDK. For an installation guide and links to OEM drivers, see the Android OEM USB Drivers document.
Samsung Android drivers may be found on their developer site: http://developer.samsung.com/android/tools-sdks/Samsung-Android-USB-Driver-for-Windows
Windows may automatically detect the correct device and install the appropriate driver when you connect your device to a USB port on your computer.
Access the Device Manager through the Windows Control Panel. If the device was automatically detected, it will show up under Portable Devices in the Device Manager. Otherwise, look under Other Devices in the Device Manager and select the device to manually update the driver.
If the device does not show up, verify that the device is turned on with enough battery power, and that the driver is installed properly.