This is why I downloaded the android source code yesterday. It hurts me a lot. You know.
I saw an article to solve this problem:
An error occurred while updating SDK manager.
Failed to fetch urlhttps: // dl-ssl.google.com/android/repository/repository-6.xml,reason: connection to https://dl-ssl.google.com refused
Failed to fetch urlhttp: // dl-ssl.google.com/android/repository/addons_list-1.xml, reason: connection to http://dl-ssl.google.com refused
Failed to fetch urlhttps: // 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 sdkmanager to update or update the ADT plug-in of eclipse. I can also update the plug-in normally before, but I did not know what the node was doing 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 sdkmanager and select "Force https ://... Sources to be fetched usinghttp ://...", 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
Add the preceding URL and use the HTTP protocol to update the URL.
Or you can do nothing, and it may return to normal in a day or two.
The following is the content to be added when you modify the hosts file using various Google services.
# Google service
# Chrome online applications
203.208.46.146 chrome.google.com
203.208.46.146 clients0.google.com
203.208.46.146 clients1.google.com
203.208.46.146 clients2.google.com
203.208.46.146 clients3.google.com
203.208.46.146 clients4.google.com
203.208.46.146 www.googleusercontent.com
203.208.46.146 lh0.googleusercontent.com
203.208.46.146 lh1.googleusercontent.com
203.208.46.146 lh2.googleusercontent.com
203.208.46.146 lh3.googleusercontent.com
203.208.46.146 lh4.googleusercontent.com
203.208.46.146 lh5.googleusercontent.com
203.208.46.146 lh6.googleusercontent.com
203.208.46.146 clients1.googleusercontent.com
203.208.46.146 clients2.googleusercontent.com
# Web Snapshot
203.208.46.146 webcache.googleusercontent.com
# Google SSL
203.208.46.146 encrypted.google.com
203.208.46.146 encrypted.google.com.hk
# Google Docs
203.208.46.146 docs.google.com
203.208.46.146 docs0.google.com
203.208.46.146 docs1.google.com
203.208.46.146 docs2.google.com
203.208.46.146 docs3.google.com
203.208.46.146 spreadsheets.google.com
203.208.46.146 spreadsheets0.google.com
203.208.46.146 spreadsheets1.google.com
203.208.46.146 spreadsheets2.google.com
203.208.46.146 spreadsheets3.google.com
# Gmail
203.208.46.146 mail.google.com
203.208.46.146 chatenabled.mail.google.com # Gtalk chat service in Gmail
# Google Search
203.208.46.146 www.google.com
# Google Preview
203.208.46.146 www.googlepreview.com
# Google translation
203.208.46.146 translate.google.com
203.208.46.146 translate.googleapis.com
# Google search suggestion (ie9)
203.208.46.146 clients5.google.com
# Google Code
203.208.46.146 code.google.com
# Picasa network album
203.208.46.146 picasaweb.google.com
203.208.46.146 lh0.ggpht.com
203.208.46.146 lh1.ggpht.com
203.208.46.146 lh2.ggpht.com
203.208.46.146 lh3.ggpht.com
203.208.46.146 lh4.ggpht.com
203.208.46.146 lh5.ggpht.com
203.208.46.146 lh6.ggpht.com
203.208.46.146 lh7.ggpht.com
203.208.46.146 lh8.ggpht.com
203.208.46.146 lh8.ggpht.com
203.208.46.146 lh9.ggpht.com
203.208.46.146 lh6.google.com
# Google Profile
203.208.46.146 profiles.google.com
203.208.46.146 browsersync.google.com
# Google +
203.208.46.146 talkgadget.google.com # chat service in Google +
203.208.46.146 ssl.gstatic.com
203.208.46.146 images-pos-opensocial.googleusercontent.com
203.208.46.146 images1-focus-opensocial.googleusercontent.com
203.208.46.146 images2-focus-opensocial.googleusercontent.com
203.208.46.146 images3-focus-opensocial.googleusercontent.com
203.208.46.146 images4-focus-opensocial.googleusercontent.com
203.208.46.146 images5-focus-opensocial.googleusercontent.com
203.208.46.146 images6-focus-opensocial.googleusercontent.com
203.208.46.146 plus.google.com
# Download
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
# Groups
203.208.46.146 groups.google.com
# Google URL shortener
203.208.46.146 goo. GL
# Google App Engine
203.208.46.146 appengine.google.com
# Android developer
74.125.113.121 2.16.android.com
Http://blog.sina.com.cn/s/blog_4a94a0db0100y4h7.html