For Ubuntu Linux do this first (neccessary):
sudo apt-get install libc6-dev-i386 lib32z1 openjdk-8-jdk
Install AndroidSDK (the easiest and best way):
1. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2. brew tap homebrew/cask
3. brew install --cask android-sdk
Installing via the Command Line:
android update sdk --no-ui --all
If you want to be selective about installing, you can use
android list to view all the packages and apply the --filter
option for selective installs:
sudo android update sdk --no-ui --filter platform-tools,tools