mkapk

mkapk: Android Build System for Termux

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.


Features


Prerequisites

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.

Required Packages

One-Line Installation

Run 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

Debian package download

Download Latest Release


Project template Repository

Template


Usage Instructions

Project Setup

Initialise template directory structure in the current directory.

mkapk init

Build

Start build using:

mkapk build

Default build is debug.

Build Flags

Clean Up

To clean up previous build artifacts, run:

mkapk clean

Note: This will disable incremental build for the next build.

Language Plugin Management (experimental)

To install a plugin, run:

mkapk install <path/to/plugin.pl>

To uninstall a plugin, run:

mkapk uninstall <path/to/plugin.pl>