Forked from shark0der/ubuntu14.04-command-line-install-android-sdk
Created
November 16, 2017 20:15
-
-
Save dcalixto/ef0891e02a0e6c6560e55d2437a1ffed 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 hidden or 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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment