Android SDK Update Connection to http://dl-ssl.google.com refused Solution

Source: Internet
Author: User

Problem description

An error occurred while updating SDK manager.
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>
Failed to parse https://dl-ssl.google.com/android/eclipse when updating ADT

Solution

For some well-known and incomprehensible reasons, there may be various problems in using Google services in mainland China, such as obstacles in Android development. However, it should be noted that under normal circumstances, it is okay to use SDK manager to update or update the ADT plug-in of eclipse. I can also update the plug-in normally before, but I didn't know what the node took yesterday, there is no connection to the server at all, and there are various problems above. Let's talk about how to solve the problem if the network is exhausted.

The first method is to directly configure the VPN once and for all, but it is not easy to find a fast, stable, and free VPN, especially when updating the SDK, it takes more than 400 minutes to get a file at a speed of several kb/s, so the VPN is abandoned.

Another method is to use the HTTP protocol instead of the HTTPS protocol. Because the HTTPS protocol is encrypted, the Chinese mainland cannot review the protocol and the HTTP protocol is blocked, if you do not access things in disorder, it is okay to update the SDK.
In SDK manager tools-> options, open the settings of SDK manager and select "Force https ://... Sources to be fetched using http ://...", Use http.
When updating the ADT plug-in.
However, yesterday's situation was that the HTTP protocol was not accessible.

Another troublesome method is to open it directly.

Https://dl-ssl.google.com/android/repository/addons_list.xml

Https://dl-ssl.google.com/android/repository/repository.xml

Https://dl-ssl.google.com/android/repository/addon.xml

For these files, find the file name you want to download and download it directly with thunder. ADT can download the ADT package from the official website for installation. Search by yourself for specific methods.

The best method is to change the hosts file, which is faster. In the c: \ windows \ system32 \ drivers \ etc directory for windows, a Linux user opens the/etc/hosts file.
Open the file and add the following content.

# Google Homepage
203.208.46.146 www.google.com
# This line is used to open the official Android development website. Now it seems that you can open it without turning over the wall.
74.125.113.121 2.16.android.com
# Download the updated content from the following address:
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

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.