Android Development Software Setup for Windows

In order to develop Android applications, you must have the following software installed on your system:

  1. Java Development Kit (JDK)
  2. Android Studio Development Bundle
  3. Android Native Development Kit (NDK)

Java Development Kit (JDK)

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:

The latest JDK version is available here:

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”
Note: The JAVA_HOME value must be your actual path, which may differ from these examples.

Additionally, add the JDK to the value of your PATH, e.g. C:\Program Files\Java\jdk1.8.0_91\bin

Android Studio Installation

Android Studio is the recommended IDE and install manager for the Android SDK tools. Download the Android Studio bundle from:

The Android Studio Development Bundle includes the basic tools you need to begin developing Java Android Applications:

  • Android Studio IDE
  • Android SDK tools
  • Latest Android Platform
  • Latest System Image for Emulator

Follow Android’s installation instructions:

To run any of the standalone build scripts that come with the Mobile SDK, you need to set the following environment variables:

  • Set the environment variable ANDROID_HOME to your Android SDK location. The correct syntax for setting your environment variable is: set ANDROID_HOME=<path to SDK>/android/sdk
    Note: To find the location of the SDK, launch Android Studio and select: File > Project Structure > SDK Location : "Android SDK location"
  • Add the SDK tools and platform tools directories to your PATH: set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools

Installing Additional Packages and Tools

Android Studio

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:

  • Android SDK, API level 21 or later
  • Android Build Tools, 25.0.1 and higher
  • LLDB

Android Native Development Kit (NDK)

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.

Note: You may install the NDK during the Android Studio installation process, but we recommend installing it manually to be sure that your command-line environment is set up properly and agrees with your Studio setup.

The last version of the NDK known to work with the Mobile SDK is r14b.

  1. Download the appropriate version of NDK from the following location:
  2. Save the zip to the directory where you would like to install it, e.g., C:\Dev\Android\android-ndk-r14b\.
  3. Once downloaded, extract its contents into the parent directory.
  4. Add the environment variable ANDROID_NDK_HOME, and set the value to your Android NDK location. For example: set ANDROID_NDK_HOME=C:\Dev\Android\android-ndk-r14b
  5. Add the NDK location to your PATH. For example: set PATH=%PATH%;%ANDROID_NDK_HOME%

Setting up your System to Detect your Android Device

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:

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.

To verify that the driver successfully recognized the device, open a command prompt and type the command:
adb devices
Note: You will need to successfully setup your Android development environment in order to use this command. For more information, see the next section: Android Development Environment Setup

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.