Skip to main content


Install Android SDK via CLI on Ubuntu

Open source software is nice. It gives you the freedom to compile the software yourself, so you don't have to rely on somebody else's binary. To fully utilize this perk, you need to be able to compile the source.

Below is a script you can run on a headless Ubuntu server to setup Android SDK, so you can compile Android applications yourself. Simply spin up a cloud machine and let the script do the dirty work for you.

Now you should be able to compile most open source Android apps. Test it by compiling Conversations:

$ git clone
$ cd Conversations
$ ./gradlew assembleFreeDebug


Comments powered by Disqus