-
-
Save guipmourao/3e7edc951b043f6de30ca15a5cc2be40 to your computer and use it in GitHub Desktop.
# 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 |
Get the latest command line tools zip file from here https://developer.android.com/studio/index.html
However lands here from google like me, you can do this on ubuntu 16.04
apt-get install android-tools-adb
its really working guys...great guide for installing android sdk
thank you so much.It works !!
Thanks man
Thanks a lot
Thank you
Thanks
Thanks for your contribution
How to check it's working?
apt-get install android-tools-adb does not help me much, the sdkmanager does not get provisioned, and the path and environment neither. Discrete component download and unzip appears still the most reliable.
I'm working on a virtual machine with a very limited amount of space. Is it possible to install only the latest versions or a specific version of SDK package?
Consider use 26.0.2 instead 👍