Upgrade the Android SDK using the command line method

Source: Internet
Author: User
Tags android sdk manager

Why use the command line? Because the Google site is difficult to access domestic, with the Android SDK manager download is very troublesome. But I have a server in the United States, with the command line can upgrade the SDK, and then copy down.

1. Installing Java

Ubuntu 13.10 Installation Oralce JDK

2. Download the Android SDK


After extracting, go to the directory of tools directory and execute:

[email protected]:/opt/android-sdk-linux/tools#./android list Sdkrefresh sources:fetching https:// Dl-ssl.google.com/android/repository/addons_list-2.xml Validate XML Parse XML fetched add-ons list successfully Refres H Sources fetching Url:https://dl-ssl.google.com/android/repository/repository-10.xml Validate xml:https:// Dl-ssl.google.com/android/repository/repository-10.xml Parse xml:https://dl-ssl.google.com/android/repository/ Repository-10.xml fetching Url:https://dl-ssl.google.com/android/repository/addon.xml Validate xml:https://  Dl-ssl.google.com/android/repository/addon.xml Parse Xml:https://dl-ssl.google.com/android/repository/addon.xml Fetching Url:https://dl-ssl.google.com/android/repository/addon-6.xml Validate xml:https://dl-ssl.google.com/ Android/repository/addon-6.xml Parse xml:https://dl-ssl.google.com/android/repository/addon-6.xml Fetching url:htt Ps://dl-ssl.google.com/glass/gdk/addon.xml Validate xml:https://dl-ssl.google.com/Glass/gdk/addon.xml Parse xml:https://dl-ssl.google.com/glass/gdk/addon.xml fetching url:https://dl-ssl.google.com /android/repository/extras/intel/addon.xml Validate xml:https://dl-ssl.google.com/android/repository/extras/ Intel/addon.xml Parse xml:https://dl-ssl.google.com/android/repository/extras/intel/addon.xml Fetching url:https:/ /dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml Validate xml:https://dl-ssl.google.com/android /repository/sys-img/android/sys-img.xml Parse Xml:https://dl-ssl.google.com/android/repository/sys-img/android/ Sys-img.xml fetching Url:https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml Validate Xml:https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml Parse xml:https:// Dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml fetching url:https://dl-ssl.google.com/ Android/repository/sys-img/android-tv/sys-img.xml Validate Xml:https://dl-ssl.google. Com/android/repository/sys-img/android-tv/sys-img.xml Parse xml:https://dl-ssl.google.com/android/repository/ Sys-img/android-tv/sys-img.xml fetching url:https://dl-ssl.google.com/android/repository/sys-img/google_apis/ Sys-img.xml Validate xml:https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml Parse xml:ht Tps://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml fetching url:https:// Dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml Validate Xml:https://dl-ssl.google.com/android/ Repository/sys-img/x86/addon-x86.xml Parse xml:https://dl-ssl.google.com/android/repository/sys-img/x86/ Addon-x86.xmlpackages available for installation or update:66 1-android SDK Tools, revision 23.0.5 2-android SDK Pl Atform-tools, Revision 3-android SDK Build-tools, revision 21.1.1 4-documentation for Android SDK, API, Revisi On 1 5-sdk Platform Android 5.0, API, Revision 1 6-sdk Platform android 4.4w.2, API, Revision 2 7-sdk Platform Android 4.4.2, API, Revision 4 8-SDK Platform android 4.3.1, API 3, revision 9-sdk Platform Android 4.2.2, API, Revision 3 10-SDK Platform Android 4.1.2, API 5, Revision 11-SDK  Android 4.0.3, API Revision 5 12-SDK Platform Android 4.0, API +, Revision 4 13-SDK Platform Android 3.2, API 13, Revision 1 14-SDK Platform Android 3.1, API, Revision 3 15-SDK Platform Android 3.0, API one, Revision 2 16-SDK P Latform Android 2.3.3, API ten, Revision 2 17-SDK Platform Android 2.2, API 8, Revision 3 18-SDK Platform Android 2.1, API 7, Revision 3 19-SDK Platform Android 1.6, API 4, Revision 3 20-SDK Platform Android 1.5, API 3, Revision 4 21-s Amples for SDK APIs, Revision 3 22-samples for SDK APIs, Revision 3 23-samples for SDK API, revision 6 24-SAM Ples for SDK APIs, Revision 1 25-samples for SDK APIs, Revision 1 26-samples for SDK API, Revision 1 27-SAMPL Es for SDK API, RevisIon 2 28-samples for SDK APIs, Revision 2 29-samples for SDK API, Revision 1 30-samples for SDK API, Revisio   N 1 31-samples for SDK API one, Revision 1 32-samples for SDK API ten, Revision 1 33-samples for SDK API 8, Revision 1 34-samples for SDK API 7, Revision 1 35-google APIs ARM EABI v7a System Image, Google INC API, Revision 2 36-GO OGLE APIs Intel x86 atom_64 system image, Google INC API, Revision 2 37-google APIs Intel x86 Atom System image, Goo GLE Inc. API, Revision 2 38-google APIs, Android API, Revision 1 39-google APIs (x86 System Image), Android API  Revision 9 40-google APIs (ARM System Image), Android API, revision 9 41-glass development Kit Preview, Android  API, Revision 42-google APIs, Android API, Revision 3 43-google APIs, Android API, Revision 3 44-google APIs, Android API, Revision 3 45-google APIs, Android API, Revision 2 46-google APIs, Android API, revision 2 47-google APIs, AndroidOID API, Revision 1 48-google TV Addon, Android API, Revision 1 49-google APIs, Android API, Revision 1 50-  Google TV Addon, Android API, Revision 2 51-google APIs, Android API one, Revision 1 52-google APIs, Android API 10, Revision 2 53-google APIs, Android API 8, Revision 2 54-google APIs, Android API 7, Revision 1 55-google APIs, Android  OID API 4, Revision 2 56-google APIs, Android API 3, Revision 3 57-android support Repository, revision 9 58-android  Support Library, revision 21.0.2 59-google play services for Froyo, revision 60-google Play Services, revision 21 61-google Repository, Revision 62-google play APK Expansion Library, Revision 3 63-google play billing library, R Evision 5 64-google Play Licensing Library, Revision 2 65-android Auto API Simulators, Revision 1 66-google Web Driv Er, Revision 2


Well, now choose the installation you want.

In this case, you may encounter ADB cannot find a file error, install the following two packages:

Apt-get Install Lib32stdc++6apt-get Install LIB32Z1

Can be installed, with the following command:

./android Update SDK--no-ui--filter 2

can also not add--filter parameters, all download, I ran two times, get the total size of 6.3GB directory.


Then copy it to your computer.


Upgrade the Android SDK using the command line method

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.