Skip to content

Instantly share code, notes, and snippets.

@51f0x
51f0x / ubuntu-cli-install-android-sdk.zh
Last active October 8, 2025 15:28 — forked from zhy0/ubuntu-cli-install-android-sdk.sh
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
#!/usr/bin/env zsh
set -euo pipefail
# Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
# Execute this script in your home directory. Some steps will prompt you for y/n.
# Install Oracle JDK 8
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer