A bleeding-edge, ultra-lightweight boilerplate to build Native Android applications (Java & XML) using Visual Studio Code and Terminal.
Completely bypasses the heavy Android Studio. Perfect for developers with low-end laptops (Potato PCs) who still want to use the latest Android API 37 and Gradle 9.x without melting their CPU.
Built with โค๏ธ from Indonesia. Designed specifically to help developers worldwide who code on low-specs machines.
(Clean, fast, and fully automated build process straight from VS Code)
- Zero Android Studio Needed: Runs purely on Gradle and Command-Line.
- No Laptop Overheating: We removed the heavy Red Hat Java Language Server. We use lightweight formatters instead.
- Modern Standard: Pre-configured with Android API 37, Gradle 9.5.1, and AGP 9.2.1.
- Global SDK Path: Uses
ANDROID_HOME. No need to hardcode your SDK path inlocal.propertiesanymore! - 1-Click Automation: Comes with custom
.batscripts cleanly organized in thescripts/folder.
To build Android apps without Android Studio, you only need to set up these tools once on your Windows machine:
- Download Microsoft Build of OpenJDK (Recommended for VS Code): Download here
- Install it and ensure
JAVA_HOMEis added to your Environment Variables. (Works flawlessly up to JDK 25!).
We will download the raw Android SDK without the heavy IDE.
- Download the "Command line tools only"
.zipfor Windows from the Android Studio Page. - Extract and organize it exactly like this:
D:\AndroidSDK\cmdline-tools\latest\bin\sdkmanager.bat(You must manually create thelatestfolder). - Open Windows Environment Variables:
- Create a new System Variable:
ANDROID_HOME=D:\AndroidSDK - Edit the
Pathvariable and add:D:\AndroidSDK\cmdline-tools\latest\bin - Edit the
Pathvariable and add:D:\AndroidSDK\platform-tools
- Create a new System Variable:
- Open Command Prompt and download the required packages (API 37):
sdkmanager "platforms;android-37.0" "build-tools;37.0.0" "platform-tools"
Do NOT install the heavy "Extension Pack for Java". Install these instead to keep your editor blazing fast:
- ๐งฉ Prettier - Code formatter
- โ Prettier Java Plugin
- ๐ XML Tools
Since we use ANDROID_HOME, the setup is completely plug-and-play!
-
Clone the repository:
git clone https://github.com/yourusername/android-vscode-template.git cd android-vscode-template -
Open in VS Code:
code . -
Plug in your Android Phone (Ensure USB Debugging is enabled).
You don't need to memorize any terminal commands. Just press Ctrl + Shift + B (or go to Terminal -> Run Task...) and select:
-
๐ 1. Run Android (Debug & Test):
- Automatically builds the debug APK, installs it, and launches the app on your phone. Perfect for your daily coding workflow.
-
๐ 2. Build APK (Official Release):
- Builds a highly optimized, signed Release APK ready for the Play Store. Uninstalls the old debug version automatically to prevent signature clashes.
โ ๏ธ IMPORTANT FOR BEGINNERS: You cannot run this task immediately. You must run Task 3 (Generate Keystore) first to create your app's signature!
-
๐ 3. Generate Keystore (Run once before Release):
- An interactive prompt to create a
.jksapp signature. It securely auto-generates alocal.propertiesfile to store your passwords (which is safely ignored by Git!). Run this task once before building your first Official Release.
- An interactive prompt to create a
This project is licensed under the MIT License. Feel free to clone, modify, and build your empire from a potato PC!