1. 3efaf9f  Merge "Revert to using the analyzer scripts." by Dan Albert - 17 hours ago master
  2. 81bd206  Revert to using the analyzer scripts. by Dan Albert - 18 hours ago
  3. ec4c758  Merge "Copy repo.prop into the NDK package." by Dan Albert - 2 days ago
  4. fb18711  Copy repo.prop into the NDK package. by Dan Albert - 2 days ago
  5. d7d1163  Merge "Copy the prebuilt analyzer." by Dan Albert - 2 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

For Linux or Darwin:

$ python --no-package

For Windows, from Linux:

$ python --system windows


The simplest way to package an NDK on Linux is to just omit the --no-package flag when running This will take a little longer though, so it may not be desired for day to day development.

To package the NDK for Windows or Darwin (or if more control over the packaging process is needed), invoke build/tools/ directly. This process will be improved in a future commit.

Best Practices for Incremental Builds