Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ubuntu 14.04 command line install android sdk (platform & platform-tools only, no emulator)
# install java
apt-get install -y software-properties-common
apt-add-repository -y ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
# download latest android sdk
cd /opt
tar -xvf android-sdk*-linux.tgz
cd android-sdk-linux/tools
./android update sdk --no-ui --filter platform,platform-tools
# set path
echo 'export PATH=$PATH:/opt/android-sdk-linux/platform-tools' >> /etc/profile.d/
echo 'export ANDROID_TOOLS=/opt/android-sdk-linux' >> /etc/profile.d/
source /etc/profile.d/
# add i386 support
dpkg --add-architecture i386
apt-get update
apt-get install -y libc6:i386 libstdc++6:i386 zlib1g:i386
# install sdks
cd /opt/android-sdk-linux/tools
#./android list sdk --all -e
./android update sdk --all --no-ui --filter platform-tools,tools,build-tools-25.0.2,android-24,sys-img-x86_64-google_apis-24,addon-google_apis-google-24,extra-android-support,extra-android-m2repository,extra-google-m2repository,extra-google-google_play_services
# done!
adb connect <IP>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment