1. Download Android SDK
http://tools.android-studio.org/index.php/sdk/ I downloaded: Android sdk_r24.4.1-linux.tgz
2. Unzip Android SDK
Copy the Android sdk_r24.4.1-linux.tgz file to a directory in the Linux file system. My directory is / usr/local/
Execute command decompression:
- tar -zvxf android-sdk_r24.4.1-linux.tgz
3. Configure environment variables
Add the following two lines at the end of the file / etc/profile:
Android SDK Linux is the name of the file you unzipped. tools must write this. It is the name of the folder inside
- export ANDROID_HOME=/usr/local/android-sdk-linux
- export PATH=$ANDROID_HOME/tools:$PATH
The execution of the order takes effect immediately
Result
- android list sdk --all
Install by serial number
- 1- Android SDK Tools, revision 24.1.2
- 2- Android SDK Platform-tools, revision 22
- 3- Android SDK Build-tools, revision 22.0.1
- 4- Android SDK Build-tools, revision 22 (Obsolete)
- 5- Android SDK Build-tools, revision 21.1.2
- 6- Android SDK Build-tools, revision 21.1.1 (Obsolete)
- 7- Android SDK Build-tools, revision 21.1 (Obsolete)
- 8- Android SDK Build-tools, revision 21.0.2 (Obsolete)
- 9- Android SDK Build-tools, revision 21.0.1 (Obsolete)
- 10- Android SDK Build-tools, revision 21 (Obsolete)
- 11- Android SDK Build-tools, revision 20
- 12- Android SDK Build-tools, revision 19.1
- 13- Android SDK Build-tools, revision 19.0.3 (Obsolete)
- 14- Android SDK Build-tools, revision 19.0.2 (Obsolete)
- 15- Android SDK Build-tools, revision 19.0.1 (Obsolete)
- 16- Android SDK Build-tools, revision 19 (Obsolete)
- 17- Android SDK Build-tools, revision 18.1.1 (Obsolete)
- 18- Android SDK Build-tools, revision 18.1 (Obsolete)
- 19- Android SDK Build-tools, revision 18.0.1 (Obsolete)
- 20- Android SDK Build-tools, revision 17 (Obsolete)
- 21- Documentation for Android SDK, API 22, revision 1
- 22- SDK Platform Android 5.1.1, API 22, revision 2
- 23- SDK Platform Android 5.0.1, API 21, revision 2
- 24- SDK Platform Android 4.4W.2, API 20, revision 2
- 25- SDK Platform Android 4.4.2, API 19, revision 4
- 26- SDK Platform Android 4.3.1, API 18, revision 3
- 27- SDK Platform Android 4.2.2, API 17, revision 3
- android update sdk -u --all --filter 1,2,3,5,11,12,22,23,24,25,26,27,28,29,88,89