๐ Introduction
ktroid is a minimalistic CLI tool for Native Android development without Android Studio. Build, test, and deploy Android apps using just your terminal and favorite text editor.
โ๏ธ Installation
Download
Make Executable
Verify Installation
๐ Quick Start
Get your first Android app running in under 2 minutes:
Step 1: Setup Android SDK
Step 2: Create Project
Step 3: Build & Run
๐ง setup - Android SDK Setup
Downloads and configures Android SDK, Command Line Tools, and essential build tools for your system.
Syntax
What It Does
- Downloads Android Command Line Tools
- Installs latest Android SDK Platform
- Sets up build tools and platform tools
- Configures environment variables
- Installs Gradle wrapper
๐ฆ create/init - Create New Project
Initialize a new Android project with Kotlin, Jetpack Compose, and Material 3 design.
Syntax
Examples
Project Structure
Creates a complete Android project with:
app/src/main/- Main source directoryMainActivity.kt- Entry point with Jetpack ComposeAndroidManifest.xml- App configurationbuild.gradle- Build configurationres/- Resources (colors, strings, themes)
๐จ build - Build Application
Compile your Android project into an APK file.
Syntax
Examples
Output: APK file in app/build/outputs/apk/
โถ๏ธ run - Build & Launch
Builds the app, installs on connected device/emulator, and launches it.
Syntax
๐ฑ emulator - AVD Management
List, start, and create Android Virtual Devices (emulators).
List Available Emulators
Start Emulator
Create New Emulator
๐ฆ dep - Add Dependencies
Quickly add libraries from MavenCentral with smart search.
Syntax
Popular Examples
๐งช test - Run Tests
Execute unit tests, instrumented tests, or all tests.
Run All Tests
Unit Tests Only
Instrumented Tests
๐ bump - Version Management
Increment app version automatically.
Bump Minor Version
Bump Major Version
Example: 1.0.0 โ 1.1.0 (minor) or 2.0.0 (major)
ktroid --help to see all 24 commands with detailed descriptions.