Android Developers
  • English
  • Bahasa Indonesia
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
Home Guides Reference Samples Downloads
Android Developers
  • Home
  • Guides
  • Reference
  • Samples
  • Downloads
  • Introduction
  • Get started
  • Concepts
  • JNI tips
  • Common problems and solutions
  • Advice for middleware vendors
  • Build your project
  • Introduction
  • ndk-build
    • The ndk-build script
    • Android.mk
    • Application.mk
    • Use prebuilt libraries
  • CMake
  • Use the NDK with other build systems
  • Integrate the NDK into your own build system
  • Standalone toolchains
  • Architectures and CPUs
  • Introduction
  • Android ABIs
  • CPU features
  • Neon support
  • Writing C/C++ Code
  • Introduction
  • Android SDK version properties
  • C++ support
  • Native APIs
  • Debug and profile
  • Introduction
  • Debug with Android Studio
  • ndk-gdb
  • ndk-stack
  • Address Sanitizer
  • HWAddress Sanitizer
  • GWP-ASan
  • Native tracing
  • Profile-guided Optimization
  • Simpleperf
  • Wrap shell script
  • GLES layers
  • High-performance audio
  • Introduction
  • Audio latency
  • Sampling audio
  • AAudio
  • OpenSL ES
    • Overview
    • Get started
    • OpenSL ES for Android
    • Android extensions
    • OpenSL ES programming notes
  • Native MIDI API
  • Additional resources
  • Vulkan
  • Introduction
  • Get started
  • Design guidelines
  • Shader compilers
  • Validation layers
  • Wide color support
  • Extensions
  • Android Baseline profile
  • Machine learning
  • Neural Networks API
  • Images
  • Image decoder
  • Home
  • NDK
  • Guides

Build your project

There are three main ways to build code with the NDK:

  • The Make-based ndk-build.
  • CMake.
  • Standalone toolchains for integration with other build systems, or use with configure-based projects.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2020-08-17 UTC.

  • WeChat WeChat
    Follow Google Developers on WeChat
  • Twitter Twitter
    Follow @AndroidDev on Twitter
  • YouTube YouTube
    Check out Android Developers on YouTube
  • More Android

    • Android
    • Enterprise
    • Security
    • Source
  • Support

    • Report platform bug
    • Report documentation bug
    • Google Play support
    • Join research studies
  • Documentation

    • Developer guides
    • Design guides
    • API reference
    • Samples
    • Android Studio
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Privacy
  • License
  • Brand guidelines
  • ICP证合字B2-20070004号
  • Get news and tips by email Subscribe
  • English
  • Bahasa Indonesia
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어