I thought setting up an Android build environment on Android itself would be pretty straightforward. 😭
My original plan was simple: get OpenJDK 25 from the Termux repositories, set up Gradle, install the Android SDK tools, and start building my IDE.
Well, that turned out to be a lot harder than expected.
Missing libraries, broken paths, directory issues, incompatible binaries, environment variables, and tools that just wouldn't cooperate. Every time I fixed one thing, something else seemed to break. I spent way more time fighting the toolchain than actually building the IDE.
My laptop is broken at the moment, so I decided to use my phone and AI tools to start working on this project instead. I have some programming experience and a basic understanding of Java, but writing and debugging code for a project like this entirely on a phone is a challenge of its own.
Honestly, I started this mostly out of boredom and curiosity. I wasn't expecting it to turn into such a deep rabbit hole.
After roughly two days of tinkering, debugging, and trying to get everything working together, I finally managed to build my first simple test APK!
That was a pretty satisfying moment. Although, naturally, I later discovered that the SDK manager I'd been working with was deprecated. 💀
For now, it's just a basic Android IDE, and there's still a long way to go. But at least I've got something working, and that's a start.
I'm curious: has anyone here tried setting up a complete Android build toolchain directly on an Android device, especially outside a traditional Linux desktop environment?
What were the biggest compatibility issues you ran into? And are there any tools or approaches you'd recommend for making this setup less painful?
I'd love to hear about your experiences!