Create a New Android SDK

From RAD Studio
Jump to: navigation, search

Go Up to SDK Manager


Add a New SDK | Select the Android platform. | Select Add New under Select an SDK version.

You can use the Create a New Android SDK wizard to add an Android SDK to the SDK Manager that defines the paths to the Android development tools installed on your development system. You can then use the Android SDK to build your applications for the Android target platform.

Notes:
  • Installing Android support, either during the RAD Studio installation or afterwards, configures an Android SDK automatically.
  • The wizard dialogue shows location path examples for these fields.

Setting Android Development Kit (SDK) page

In this page, you provide the paths to your Android SDK, Android NDK, and JDK folders:

Item Description Location Path Example

Android SDK Base path (SDK_BASE_PATH)

The path to the Android SDK folder.

  • If you install the Android SDK using the RAD Studio installer, this path is the location path example.
  • If you selected a specific SDK version in Add a New SDK (an Android SDK version detected as installed in your system), RAD Studio fills this field for you.

C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidSDK-<Version>

Android NDK Base path (NDK_BASE_PATH)

The path to the Android NDK folder.

  • If you install the Android NDK using the RAD Studio installer, this path is the location path example.
  • If you install the Android NDK yourself, this is the folder that results from extracting the ZIP archive containing the Android NDK that you download from Google.

C:\Users\<user>\Documents\Embarcadero\Studio\SDKs\android-ndk-17b

Java installation path (JAVA_INSTALLATION_PATH)

The path to the JDK installation folder.

RAD Studio may detect this path automatically. Otherwise, you can usually find it at the location path example.

C:\Program Files\Java\jdk<version>

Setting Android tools locations page

RAD Studio automatically detects the paths of the required tools based on the paths that you provide in the previous page. In this page you can customize the paths, or specify the paths to tools that RAD Studio could not detect.

Item Description Location Path Example

ZipAlign location

The location of the ZipAlign.exe SDK tool.

SDK_BASE_PATH\tools\ZipAlign.exe
SDK_BASE_PATH\build-tools\<version>\zipalign.exe

Android location

The location of the Android.bat SDK tool.

SDK_BASE_PATH\tools\Android.bat

Adb location

The location of the Adb.exe SDK platform tool.

SDK_BASE_PATH\platform-tools\Adb.exe

Aapt location

The location of the aapt.exe SDK build tool.

SDK_BASE_PATH\build-tools\android-4.4\aapt.exe

Java KeyTool location

The location of the KeyTool.exe JDK tool.

JAVA_INSTALLATION_PATH\bin\KeyTool.exe

Java JarSigner location

The location of the JarSigner.exe JDK tool.

JAVA_INSTALLATION_PATH\bin\JarSigner.exe

arm-linux-androideabi-ld.exe location

The location of the arm-linux-androideabi-ld.exe linker.

NDK_BASE_PATH\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe

arm-linux-androideabi-strip.exe location

The location of the arm-linux-androideabi-strip.exe executable.

NDK_BASE_PATH\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-strip.exe

gdbserver location

The location of the gdbserver.

NDK_BASE_PATH\prebuilt\android-arm\gdbserver\gdbserver

NDK API location

The location of the API folder withing the NDK folder.

NDK_BASE_PATH\platforms\android-14

Delphi NDK Library path

The location of the Delphi NDK library folder.

NDK_BASE_PATH\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi-v7a

C++Builder NDK Library path

The location of the C++Builder NDK library folder.

NDK_BASE_PATH\platforms\android-14\arch-arm\usr\lib

SDK API-Level

The SDK API level to use. Any version is fine.

--

See Also