Android SDK Manager does not update, an error message appears: "Failed to fetch URL ..."!

Source: Internet
Author: User
Tags android sdk manager

can be resolved in the following ways:

There was a problem using SDK Manager update Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, Reason: Connection to Https://dl-ssl.google.com refused Failed to fetch URL http://dl-ssl.google.com/android/repository/addons _list-1.xml, reason:connection to Http://dl-ssl.google.com refused Failed to fetch URL https://dl-ssl.google.com/ Android/repository/addons_list-1.xml, reason:hostname in certificate didn ' t match: <dl-ssl.google.com>! = < Www.google.com> cannot resolve https://dl-ssl.google.com/android/eclipse when updating ADT

Because of some well-known and incomprehensible reasons, there are problems with the use of Google services in our mainland, such as the obstacles to Android development. But the first thing to note is that the general use of SDK Manager update or update Eclipse ADT plugin is not a problem, I can update the normal, but yesterday I do not know what the wind node, no connection to the server, there has been a variety of problems above, Let's talk about how to solve the problem if the network is exhausted. One way is to use the HTTP protocol instead of the HTTPS protocol, because the HTTPS protocol is encrypted, the mainland because it can not be reviewed, directly sealed, and the HTTP protocol is filtering processing, if you do not access the mess, update the SDK is no problem.

Workaround (1) ADT Update

When updating the ADT plugin, use the URL http://dl-ssl.google.com/android/eclipse instead of the Https://dl-ssl.google.com/android/eclipse, This is also described in the official development documentation. Yesterday, however, it was not accessible using the HTTP protocol.

Manual download is recommended for ADT

      (2) SDK Update               1 tools->options Open SDK Manager's settings under SDK Manager and select "Force https://... Sources to is fetched using HTTP//... "to force the use of the HTTPS protocol.              2 "Then change the Hosts file. 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开发官网 now seems to be FQ or open 74.125.113.121 developer.android.com # Updated content downloaded from the following address 203.208.46.146 dl.google.com 203.208.46.146 dl-ssl.google.com  Add the above URL, it can be updated normally. Or you can do nothing, and a day or two may return to normal.

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.