Install Android SDK
Download Android command line tools
- Visit to Android Developer website.
- Download the SDK tools package for Linux.
android-sdk_r24.4.1-linux.tgz
cd /opt/Android wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
Unzip it to destination folder
$ tar zxvf android-sdk_r24.4.1-linux.tgz
Then rename the folder from android-sdk-linux to sdk.
Entry to sdk/tools, and open the android script file with excute.
After start the Android SDK Manager, install below things:
- Android SDK Tools
- Android SDK Platform-tools
- Android SDK Build-tools
- SDK Platform
- (optional) install what you need in Extras folder
Seting CLASSPATH
- Use Files tool to open ~/.bashrc file.
cd ~/
- Add the below lines at end of the file.
export PATH=${PATH}:/opt/Android/sdk/tools export PATH=${PATH}:/opt/Android/sdk/platform-tools
- Use Files tool to open ~/.bashrc file.
Restart Ubuntu
sudo shutdown -r now