About Android SDK installation failed to fetch URL a little thought

Source: Internet
Author: User

Recently the SDK problem, and then a Google download a android-sdk-windows.rar, and then click on the SDK Manager, the results have been unable to refresh the API level, and then began to find a lot of information online, to solve this problem, modify the HOSTS,   HTTP and HTTPS are not resolved, which brings me a great deal of confusion! The interface errors that cannot be loaded are:
Fetching Http://dl-ssl.google.com/android/repository/addons_list-1.xml

    1. Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason:connection to/HTTP Dl-ssl.google.com refused
    2. Fetched add-ons List successfully
    3. Fetching Url:http://dl-ssl.google.com/android/repository/repository-6.xml
    4. Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-6.xml reason:connection to/HTTP Dl-ssl.google.com refused
    5. Done loading packages.

I was tangled, has been the connection failed, is the telecom Google Android blocked, there is a recent idea, how to block the mobile phone Android but will not block the Google search engine, if the telecommunications Google search engine blocked, the telecommunications estimate also closed! Hehe I made a choice, use www.google.com to do agent, detailed look:

Then click on a package under the reload reload, hehe results API level all out, really cool crooked, hehe share to everyone, hope to everyone has help ~

or solve it in the following ways:

Directly configure the VPN, but now want to find a fast and stable free VPN is not easy, especially the update SDK to a few kb/s speed a file takes more than 400 minutes, so also give up the VPN.

You can also enter the hosts file to configure:

Change the Hosts file method, update faster. WINDOWS in the C:\WINDOWS\system32\drivers\etc directory, Linux users open the/etc/hosts file.
After opening the file, add the following content.

#Google主页
203.208.46.146 www.google.com
#这行是为了方便打开Android开发官网 don't seem to turn right now.
74.125.113.121 developer.android.com
#更新的内容从以下地址下载
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

Add the above URLs, and then choose the HTTP protocol, you can update the normal. Or you can do nothing, and a day or two may return to normal.

Final Summary:

This is ultimately the universal firewall to blame, but you can not kill it? For Android development, please let Google go?

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.