Forked from guipmourao/ubuntu16.04-command-line-install-android-sdk
Created
April 9, 2018 06:45
-
-
Save AghilasSini/d91b258ad0e283e447fcd1e20b128540 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 command line install android sdk
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
| # create sdk folder | |
| export ANDROID_HOME=/opt/android-sdk-linux | |
| sudo mkdir -p $ANDROID_HOME | |
| # install openjdk | |
| sudo apt-get install openjdk-8-jdk | |
| # download android sdk | |
| cd $ANDROID_HOME | |
| sudo wget https://dl.google.com/android/repository/tools_r25.2.3-linux.zip | |
| sudo unzip tools_r25.2.3-linux.zip | |
| cd tools | |
| # install all sdk packages | |
| sudo ./android update sdk --no-ui | |
| # set path | |
| export PATH=${PATH}:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_HOME/build-tools/25.0.2/ | |
| source /etc/profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment