Forked from guipmourao/ubuntu16.04-command-line-install-android-sdk
Last active
May 19, 2018 17:29
-
-
Save renzo-blockchain/7a6a92c9bd5bb951c4a1fbab64201f27 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 command line install android sdk
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
# 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/sdk-tools-linux-3859397.zip | |
sudo unzip sdk-tools-linux-3859397.zip | |
cd tools | |
# install specific sdk packages | |
cd $ANDROID_HOME/tools/bin | |
sudo ./sdkmanager --list | |
sudo touch /root/.android/repositories.cfg | |
sudo ./sdkmanager "platform-tools" "build-tools;27.0.1" "platforms;android-26" | |
# set path | |
export PATH=${PATH}:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_HOME/build-tools/27.0.1/ | |
source /etc/profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment