Android NDK - AshokBhat/notes GitHub Wiki

NDK

  • Native Development Kit
  • For compiling C/C++ libraries within Android.

NDK and Android Toolchain

  • The NDK and the Android OS use the same toolchain.
  • Android's toolchain team is constantly working on updating to the latest upstream LLVM for the OS.
  • NDK toolchain may be older as it needs to be stable

Components

GNU toolchain

Component Status
gcc Removed in NDK r18
gdb Planned removal in the future
libgcc Planned retirement in favor of compiler-rt
GNU ar Retired in r22 in favor of llvm-ar
GNU strip Retired in r22 in favor of llvm-strip

LLVM toolchain

Component Status
clang Available
lld First added in NDK r18, default in r22
lldb First added in NDK r22
libc++ Default in NDK r17
compiler-rt Not default yet

Release schedule

Releases Notes
Rolling quarterly release A frequent, "rolling" release
Roughly quarterly basis
LTS release Long Term Support release
Once a year (typically in Q3)
Backports and bug fixes until the next LTS is released

Releases

NDK r21 release

Upcoming release NDK r22

Release Expected Release Date
Beta 1 Q4 2020
RC 1 Q4 2020
Release TBD

Release R23

Mapping rev to LLVM hash

See also

⚠️ **GitHub.com Fallback** ⚠️