Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 28 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
  • Save shark0der/ca2fe61dc4e0f72b72f9 to your computer and use it in GitHub Desktop.
Save shark0der/ca2fe61dc4e0f72b72f9 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
./android update -u -t 1,2,4,26,103
# done!
adb connect <IP>
@Logiks
Copy link

Logiks commented Sep 17, 2017

./android update sdk -u -t 1,2,4,26,103

SDK is missing, basically error is that its asking what to update.

@kdahlhaus
Copy link

sudo apt install libswt-gtk-3-java libswt-gtk-3-jni allowed me to run ./android with the GUI.

@Ethan-Rivas
Copy link

Update line 29 with:
./android update sdk -u -t 1,2,4,26,103 or all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment