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>
When updating the ADT, you cannot parse https://dl-ssl.google.com/android/eclipseunder SDK manager tools-> options to open the settings of SDK manager, 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 enable the official Android development website. Now it seems that you can enable it without using VPN.
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.