Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save abumalick/68aee6da32f3ad217131888b39808951 to your computer and use it in GitHub Desktop.
Save abumalick/68aee6da32f3ad217131888b39808951 to your computer and use it in GitHub Desktop.
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
# http://developer.android.com/sdk/index.html#Other
cd /opt
wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
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/android.sh
echo 'export ANDROID_TOOLS=/opt/android-sdk-linux' >> /etc/profile.d/android.sh
source /etc/profile.d/android.sh
# 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