- Prerequisites
- Installation
- Quick Start
- Commands
- Command Reference
- Output
- Examples
- Support & Community
Before using apkgen-cli, ensure your environment meets these requirements:
- Termux installed from F-Droid (recommended) or GitHub
- TermuxVoid repository configured
- Android 7+ with ~1GB free storage
- Working internet connection for initial setup
Getting started is seamless. Run the following in your Termux terminal:
apt install apkgen-cli -yTip
After installation, run apkgen help to verify everything is working correctly.
# Scaffold a new Java project
apkgen create myapp
# Enter the project directory
cd myapp
# Build a debug APK
apkgen build debug
# Output: app/build/outputs/myapp-debug.apkClones the project template into a new directory and prompts for app name and package name. Defaults to Java if no flag is specified.
# Java project (default)
apkgen create myapp
# Kotlin project
apkgen create myapp --kotlin
# Flutter project
apkgen create myapp --flutter
# Native C++ project
apkgen create myapp --nativecpp
# Native C project
apkgen create myapp --nativecCompiles a debug APK with debug signing enabled (Android).
apkgen build debugCompiles an unsigned release APK (Android). Sign manually with apksigner or jarsigner.
apkgen build releaseBuilds a debug APK for Flutter projects with split ABI outputs.
apkgen build flutterRemoves all build artifacts from the project directory.
apkgen cleanPrints usage information.
apkgen help| Command | Description |
|---|---|
create <dir> |
Scaffold Java project (default) |
create <dir> --kotlin |
Scaffold Kotlin project |
create <dir> --flutter |
Scaffold Flutter project |
create <dir> --nativecpp |
Scaffold Native C++ project |
create <dir> --nativec |
Scaffold Native C project |
build debug |
Build debug-signed APK (Android) |
build release |
Build unsigned release APK (Android) |
build flutter |
Build debug APK (Flutter, split ABI) |
clean |
Remove build outputs |
help |
Show help text |
Built APKs are placed in:
app/build/outputs/
├── myapp-debug.apk
└── myapp-release-unsigned.apk
# Create and build a Java app
apkgen create myapp
cd myapp && apkgen build debug
# Create and build a Kotlin app
apkgen create myapp --kotlin
cd myapp && apkgen build debug
# Create and build a Flutter app
apkgen create myflutter --flutter
cd myflutter && apkgen build flutter
# Create a Native C++ app
apkgen create myapp --nativecpp
cd myapp && apkgen build debug
# Create a Native C app
apkgen create myapp --nativec
cd myapp && apkgen build debug
# Clean build artifacts
apkgen cleanJoin the TermuxVoid community for support and updates.
