mkapk is a lightweight, native Android build orchestrator designed specifically for high-speed, local compilation directly inside Termux (aarch64). It bypasses the overhead of heavy cross-compilation environments, bringing intelligent incremental builds, code optimization, and multi-architecture targeting straight to your terminal.
Before compiling or running mkapk, you need to ensure the required native build utilities, Java development kit, and Android platform tools are installed in your Termux environment.
openjdk-21opensslndk-multilibaapt2apksignerclangbinutilslibzipwgetRun the following command inside Termux to install all dependencies at once:
apt update && apt install openjdk-21 ndk-multilib aapt2 clang binutils libzip openssl apksigner -y
Initialise template directory structure in the current directory.
mkapk init
Start build using:
mkapk build
Default build is debug.
-release: Do a release build-all: Force a full rebuild-ndk-all: Build apk for all supported architectures along with a universal apk-arch <architecture>: Build apk only for the specified architectureTo clean up previous build artifacts, run:
mkapk clean
Note: This will disable incremental build for the next build.
To install a plugin, run:
mkapk install <path/to/plugin.pl>
To uninstall a plugin, run:
mkapk uninstall <path/to/plugin.pl>