# install openjdk apt-get install openjdk-9-jdk # download android sdk wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz tar -xvf android-sdk_r24.2-linux.tgz -C $HOME cd $HOME/android-sdk-linux/tools # install all sdk packages ./android update sdk --no-ui # install certain packages with: # ./android update sdk --no-ui --all --filter 1,2,3,<...>,N # where N is the number of the package in the list (see previous command) # Add the directory containing executables in PATH so that they can be found echo 'export ANDROID_HOME=$HOME/android-sdk-linux' >> ~/.bashrc echo 'export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools' >> ~/.bashrc source ~/.bashrc # Make sure you can execute 32 bit executables if this is 64 bit machine, otherwise skip this #dpkg --add-architecture i386 #apt-get update #apt-get install -y libc6:i386 libstdc++6:i386 zlib1g:i386 # Optionally run build system as daemon (speeds up build process) # mkdir ~/.gradle # echo 'org.gradle.daemon=true' >> ~/.gradle/gradle.properties # See here: https://www.timroes.de/2013/09/12/speed-up-gradle/