1. 9495a6f  Merge "Revert one last piece of a RS hack." by Elliott Hughes - 3 days ago master
  2. 946e9e2  Merge "Remove unnecessary RECENT_BINUTILS_VERSION." by Elliott Hughes - 3 days ago
  3. 28eb640  Remove unnecessary RECENT_BINUTILS_VERSION. by Elliott Hughes - 4 days ago
  4. 8430603  Merge "Fix APP_CONLYFLAGS typo." by Elliott Hughes - 4 days ago
  5. ed6e20d  Merge "Remove support for mips32r6 GCC < 4.9." by Elliott Hughes - 4 days ago

Android Native Development Kit (NDK)

The NDK allows Android application developers to include native code in their Android application packages, compiled as JNI shared libraries.

See the Getting Started Guide for an introduction.

See the changelist for a list of changes since the previous release.

Finally, discussions related to the Android NDK happen on the android-ndk Google Group.

Building the NDK

Note: This document is for developers of the NDK, not developers that use the NDK.

Both Linux and Windows host binaries are built on Linux machines. Windows host binaries are built via MinGW cross compiler. Systems without a working MinGW compiler can use build/tools/ to generate their own and be added to the PATH for build scripts to discover.

Building binaries for Mac OS X requires at least 10.8.

Target headers and binaries are built on Linux.


The NDK consists of three parts: host binaries, target prebuilts, and others (build system, docs, samples, tests).

Host Binaries

Target Headers and Binaries



Host/Target prebuilts

On Linux:

$ --also-64 --systems=linux-x86,windows

On MacOS X:

$ --systems=darwin-x86 --try-64
$ --systems=darwin-x86


Once all prebuilt tarballs are at $PREBUILT_PATH, run the following to package the NDK:

$ build/tools/ --prebuilt-dir=/s/prebuilt --separate-64 \

Best Practices for Incremental Builds