Forked from wenzhixin/ubuntu14.04-command-line-install-android-sdk
Last active
March 7, 2021 15:09
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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> |
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
sudo apt install libswt-gtk-3-java libswt-gtk-3-jni allowed me to run ./android with the GUI.