Android SDK updates and ADT updates

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>
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.

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.