Prerequisites

Before installing mkapk, ensure your Termux environment has the following packages:

Note: These are required for mkapk to function properly. Install them before proceeding.

Required Packages

Installation Steps

Step 1: Dependencies

Open Termux and run the following command to install all dependencies and mkapk:

1
$ apt update && apt install openjdk-21 ndk-multilib aapt2 clang binutils libzip openssl apksigner wget kotlin -y
Success! All dependencies are now installed. Proceed to download mkapk.

Step 2: Download Debian Package

Download the pre-compiled Debian package:

2
$ wget https://github.com/Nirbhay-Kumar-Developer/mkapk/releases/latest/download/mkapk-aarch64.deb

Step 3: Install the package:

3
$ dpkg --install ./mkapk-aarch64.deb

Method 2: Compile from Source

For advanced users who want to compile mkapk from source:

1

Clone the Repository

$ git clone https://github.com/Nirbhay-Kumar-Developer/mkapk.git
$ cd mkapk
2

Build the Project

$ bash compile.sh && dpkg --install mkapk-aarch64.deb

Verify Installation

Check if mkapk was installed correctly:

$ mkapk --help

You should see the help menu with all available commands. If this works, mkapk is successfully installed!

Installation Complete! You can now proceed to the Quick Start Guide.

Troubleshooting Installation

Issue: "mkapk: command not found"

The binary may not be in your PATH. Try:

$ which mkapk

If it returns nothing, reinstall the package or add the installation directory to your PATH.

Issue: "Permission denied"

Ensure the binary has execute permissions:

$ chmod +x $PREFIX/bin/mkapk

Issue: Missing Dependencies

Run the prerequisite installation again:

$ apt install -y openjdk-21 ndk-multilib aapt2 clang binutils libzip openssl apksigner

Next Steps

After successful installation:

  1. Read the Quick Start Guide to create your first project
  2. Review the Configuration Guide to customize your builds
  3. Check the Usage Guide for detailed command reference