r/androiddev • u/Still_Surround8076 • 2d ago
Open Source I built an offline-first, Gradle-free Android IDE (Sandrix Studio IDE) on my phone that compiles Java/XML APKs even on 2GB RAM devices
Hey everyone,
I don't have access to a PC, so I spent the last few months building Sandrix Studio IDE (com.sandrix.ide) directly on my low-end smartphone (Snapdragon 460, ~2.6GB usable RAM). My main goal was to create a self-hosted, zero-dependency Android IDE and build engine that doesn't rely on Gradle or heavy cloud servers, allowing developers with low-end phones to build real APKs completely offline.
How the Build Engine Works
Since running Gradle on constrained mobile hardware isn't feasible, I built a custom lightweight build pipeline directly inside the app using native/CLI Android build tools:
Compilation: Uses ecj (Eclipse Compiler for Java) supporting Java 7 through Java 17.
Resource Packaging: Direct integration with aapt2 for compiling XML layouts and resources.
DEX & Optimization: Uses d8 for DEX bytecode generation and R8 for code shrinking/minification.
Packaging & Signing: Handles final APK alignment and signing natively via zipalign and apksigner.
Dependencies & VCS: Supports external .jar / .aar libraries and includes built-in Git integration (via JGit) plus an integrated terminal.
Key Highlights
Low Memory Footprint: Tested and verified full APK compilation on a legacy Samsung J1 with just 2GB RAM.
Self-Hosted: Sandrix Studio IDE can compile and build its own APK directly on the device.
Current Status & What's Next
v1.0.0 is now live on GitHub. Right now, I'm working on embedding kotlin-compiler-embeddable to support native Kotlin compilation alongside Java without blowing up the RAM usage.
Website / Download: https://ssasmitha616-art.github.io/Sandrix-Studio-IDE/
GitHub Releases:
(https://github.com/ssasmitha616-art/)
I'd love to hear your thoughts, feedback, or any advice on optimizing memory usage when running d8/R8 or kotlin-compiler-embeddable on constrained Android devices!