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>

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

This section also describes the development documentation.

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
# IE9 recommended for Google Search)
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

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.