{"id":18242660,"url":"https://github.com/illegalvoid/termux-build-apps","last_synced_at":"2026-03-16T20:01:11.862Z","repository":{"id":261076458,"uuid":"883197053","full_name":"wo6zz/termux-build-apps","owner":"wo6zz","description":"build APKs with Termux, without needing Proot","archived":false,"fork":false,"pushed_at":"2024-12-02T14:51:37.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T11:02:24.468Z","etag":null,"topics":["android","apk","build-tool","sdk","termux"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wo6zz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-04T14:43:54.000Z","updated_at":"2025-03-08T14:00:34.000Z","dependencies_parsed_at":"2024-11-04T15:47:33.543Z","dependency_job_id":"80778242-581f-4448-8b6b-6a59575c27af","html_url":"https://github.com/wo6zz/termux-build-apps","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":0.4444444444444444,"last_synced_commit":"7892779e811f9b7bb8c7fe2e6dcb025cd8ec8b2d"},"previous_names":["wo6zz/termux-build-apps"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wo6zz%2Ftermux-build-apps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wo6zz%2Ftermux-build-apps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wo6zz%2Ftermux-build-apps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wo6zz%2Ftermux-build-apps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wo6zz","download_url":"https://codeload.github.com/wo6zz/termux-build-apps/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248425314,"owners_count":21101338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","apk","build-tool","sdk","termux"],"created_at":"2024-11-05T07:07:21.012Z","updated_at":"2026-03-16T20:01:11.856Z","avatar_url":"https://github.com/wo6zz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build Apps with Termux\n\nIn this tutorial, you'll learn how to build APKs with Termux, without needing Proot.\n\n\u003e [!NOTE]\n\u003e This guide assumes familiarity with Termux and Gradle basics. The steps below will help you get set up quickly.\n\nAfter facing challenges in building apps and testing multiple methods, I've put together the best way to do it. You can use the automated setup script or follow the manual steps below.\n\n## Quick Setup (Automated)\n\nThe fastest way to set up your build environment is using the automated setup script:\n\n```bash\n# Download and run the setup script\nwget -O ~/termux-setup.sh https://raw.githubusercontent.com/illegalvoid/termux-build-apps/main/setup.sh\nchmod +x ~/termux-setup.sh\nbash ~/termux-setup.sh\n```\n\nAfter the script completes, restart your terminal or run:\n```bash\nsource ~/.bashrc\n```\n\nThe script will automatically:\n- Update Termux packages\n- Install Java 21 (latest LTS)\n- Install Android SDK\n- Accept SDK licenses\n- Install Android Platform API 35\n- Install Gradle 8.10.2 (latest stable)\n- Configure aapt2 path\n- Set up all environment variables\n\n## Manual Setup\n\nIf you prefer to set things up manually, follow these steps:\n\n### 1. Install Termux\n\n[Termux](https://github.com/termux/termux-app/releases) is a powerful terminal app for Android, and it will serve as your development environment.\n\n### 2. Install Required Packages\n\nBefore setting up the Android SDK, you'll need some essential packages in Termux. This tutorial uses `Java 21` (latest LTS version).\n\n```bash\n# First update \u0026 upgrade\npkg update -y \u0026\u0026 pkg upgrade -y\n# Then install jdk and wget\npkg install wget openjdk-21 -y\n```\n\n\u003e **Simple Check (JDK):**  \n\u003e To confirm Java is installed correctly, run:\n\u003e ```bash\n\u003e java -version\n\u003e ```\n\u003e It should output information about JDK version 21.\n\n### 3. Install Android SDK\n\nNext, we need the Android SDK. You can find setup in this [repository](https://github.com/Sohil876/termux-sdk-installer), or run the following commands directly:\n\n```bash\n# Download the installer script using wget and save it to the home directory\nwget -O ~/install-android-sdk.sh https://raw.githubusercontent.com/Sohil876/termux-sdk-installer/main/installer.sh\n# Make the script executable\nchmod +x ~/install-android-sdk.sh\n# Run the script with the install option\nbash ~/install-android-sdk.sh -i\n```\n\nOnce the SDK is installed, you'll see a new directory named `android-sdk` in your Termux files. This directory contains all necessary tools.\n\nBefore moving on, you must accept Google licenses:\n\n```bash\nyes | sdkmanager --licenses\n```\n\nSet the Android platform version to latest, which is `35` (Android 15):\n\n```bash\nyes | sdkmanager \"platforms;android-35\"\n```\n\n### 4. Install Gradle\n\nYou'll need Gradle `v8.10.2` (latest stable version), which is compatible with Java 21. Download and set it up as follows:\n\n```bash\n# Download Gradle\nwget -O $ANDROID_HOME/gradle-8.10.2-bin.zip https://services.gradle.org/distributions/gradle-8.10.2-bin.zip\n# Unzip it\nunzip $ANDROID_HOME/gradle-8.10.2-bin.zip -d $ANDROID_HOME/\nmv $ANDROID_HOME/gradle-8.10.2/ $ANDROID_HOME/gradle/\n# Remove zip file (optional)\nrm $ANDROID_HOME/gradle-8.10.2-bin.zip\n# Add Gradle to your PATH\necho 'export PATH=${PATH}:${ANDROID_HOME}/gradle/bin' \u003e\u003e ~/.bashrc\nsource ~/.bashrc\n```\n\nNow you can run Gradle and the Android SDK for any task you need.\n\n\u003e **Simple Check (Gradle):**  \n\u003e To verify Gradle is working, run:\n\u003e ```bash\n\u003e gradle -v\n\u003e ```\n\u003e It should show version info such as: `Gradle 8.10.2`\n\n### 5. Fix aapt2 Issue\n\nThere's a known issue with Gradle in Termux where it cannot find the `aapt2` build tool. To fix this, specify it in the global Gradle properties.\n\nGo to the file `~/.gradle/gradle.properties` (create it if it doesn't exist) and add:\n\n```properties\nandroid.aapt2FromMavenOverride=/data/data/com.termux/files/home/android-sdk/build-tools/\u003cversion\u003e/aapt2\n```\n\nReplace `\u003cversion\u003e` with the actual version you have in your SDK (you can find it by running `ls ~/android-sdk/build-tools/`).\n\n---\n\n## Current Versions\n\n- **Java:** OpenJDK 21 (LTS)\n- **Gradle:** 8.10.2 (latest stable)\n- **Android Platform:** API 35 (Android 15)\n- **Build Tools:** Latest available via SDK Manager\n\n## Troubleshooting\n\nIf you encounter any issues:\n\n1. **Gradle daemon issues:** Run `gradle --stop` and try again\n2. **Permission errors:** Make sure all scripts have execute permissions with `chmod +x`\n3. **Path issues:** Ensure you've run `source ~/.bashrc` after installation\n4. **Build failures:** Check that your project's `build.gradle` targets compatible SDK versions\n\n---\n\n**Congratulations!** You can now build Android apps using Termux, without Proot. Enjoy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fillegalvoid%2Ftermux-build-apps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fillegalvoid%2Ftermux-build-apps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fillegalvoid%2Ftermux-build-apps/lists"}