Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save renzo-blockchain/7a6a92c9bd5bb951c4a1fbab64201f27 to your computer and use it in GitHub Desktop.
Save renzo-blockchain/7a6a92c9bd5bb951c4a1fbab64201f27 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 command line install android sdk
# 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