A surprisingly long overdue change to Android's Native Development Kit (NDK) for the upcoming r31 version is finally supporting ARM64 Linux hosts alongside x86_64. While Android mobile devices are predominantly ARM64, the Android NDK to now has not officially supported ARM64 Linux hosts for development. That is changing with the recently made public beta versions of NDK r31 supporting Linux ARM64 host environments. The NDK r31 state for ARM64 Linux hosts is considered an "early (alpha) release" with the toolchains, sysroots, and other NDK tooling working on Linux ARM64. This did lead them to drop some NDK tools like shaderc and yasm that do not work on 64-bit ARM. NDK on ARM64 Linux hosts has been requested by developers for years ranging from using it for development on AWS Graviton to carrying out Android app development on Apple Silicon requests. Back in 2022 they still had "no plans" to support it but finally as we close out 2026 that is changing. Sharjeel Khan of Google announced this week in one of the tickets: "NDK r31 Beta 1 has released today and it supports Linux Arm64 host which led to dropping shaderc/shader-tools and yasm from the NDK. We are considering the Linux Arm64 host as an early (alpha) release during the beta and will move it out to official once r31 moves to a stable release. I will be keeping this FR open until r31 becomes stable and will provide any updates related to Linux Arm64 host here and in the changelog's announcement. If you run into any issues with Linux Arm64 host, please create new GitHub issues and select Linux (arm64) as the Host OS rather than posting here." So far a few bug reports have come in with the r31 beta around missing libraries, some x86_64 bits remaining, and issues around use on 16KB kernel page sizes.
Android NDK Finally Supporting ARM64 Linux Hosts
Full Article
Original Source
Read the full article at Phoronix →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.