sudo apt-get install openjdk-7-jdk
download from here and follow these steps below:
cd {download-folder}
tar -xzvf android-sdk_r{version}-linux.tgz # Extract the SDK files
sudo mv android-sdk-linux /opt # Move them to the opt folder for later use
echo "export ANDROID_HOME=/opt/android-sdk-linux" >> ~/.bashrc # Create an ENV variable with the SDK location
sudo ln -s /opt/android-sdk-linux/tools/android /usr/local/bin # Create a link to the android CLI
android sdk