How to solve the problem that the Android SDK cannot download the package

Source: Internet
Author: User
Tags android sdk manager

some users, after installing the Android SDK, opened the Android SDK manager download API and always showed "done loading packages" but was slow to move forward. I also have this situation, to share their success in solving this problem.
Method/Step
    1. To open the setup form, users need to first open the Android SDK manager that has been downloaded, and then click the Tools menu option in the menu bar and then simply select the options option.
    2. Next, there is a critical step that determines whether the Android package can be successfully downloaded. In the new form, tick the checkbox button that starts with force, then click the "Close" button to close the window and save the above user settings.
    3. Open Windows Explorer (My Computer, Win7 computer), open the C:\Windows\System32\drivers\etc folder, and note that System32 is the Drivers folder, not the driver folder.
    4. The mouse double-clicks the "hosts" file, which is not able to open the file directly with the affiliate application. You need to open the Hosts file by selecting Open with Notepad or another text editing tool in the Open With dialog box that appears, and then clicking OK.
    5. Then, add the text "#google_android更新 203.208.46.146 dl.google.com 203.208.46.146 dl-ssl.google.com" to the last place in the Notepad form that appears. It is important for the user to note that the intervening spaces and line breaks should be handled with caution.
    6. Where the "#" after the content is the comment content, not practical, intended to remind users of its settings, similar to the effect of comments. After you enter the text in the previous step, tap file, save (or press the shortcut key Ctrl+s) menu in the form, and then close the window.
    7. Go back to the Android SDK Manager, select "Packages", "Reload" in the menu bar, then all the Packages will be displayed.
Precautions
    1. Users can modify the Hosts file before setting the options for the Android SDK Manager, which may take effect immediately, without having to click on "Reload".
    2. The two-segment text that is added to the hosts file above is a mapping of an address that is automatically converted to 203.208.46.146 when we visit dl.google.com.

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.