Android SDK build-tools ship only x86_64 Linux binaries. On arm64 (rooted Android with Debian chroot, Raspberry Pi, other ARM64 SBCs), Box64 translates these via binfmt_misc -- making the entire toolchain transparent to any build system (Gradle, Bazel, Buck, or raw CLI).
After setup, no wrapper scripts, no box64 prefix, no build file changes needed. Just gradle assembleDebug and it works.
Gradle (JVM, native arm64)