The Android Native Development Kit (NDK) provides a cross-compiling tool for compiling code written in C/C++ can be compiled to ARM, or x86 native code (or their 64-bit variants) for Android.
The NDK also includes a variety of other APIs:[9] zlib compression, OpenGL ES or Vulkan graphics, OpenSL ES audio, and various Android-specific APIs for things like logging, access to cameras, or accelerating neural networks.
The NDK includes support for CMake and its own ndk-build (based on GNU Make).
Other third-party tools allow integrating the NDK into Eclipse[10] and Visual Studio.
[11] For CPU profiling, the NDK also includes simpleperf[12] which is similar to the Linux perf tool, but with better support for Android and specifically for mixed Java/C++ stacks.