Android SDK updates and workarounds for ADT Update problems

Source: Internet
Author: User

Problem description


Problem with SDK Manager update
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>
Unable to resolve https://dl-ssl.google.com/android/eclipse when updating ADT


Solutions

Because of some well-known and incomprehensible reasons, there are problems with the use of Google services in our mainland, such as the obstacles to Android development. But the first thing to note is that the general use of SDK Manager update or update Eclipse ADT plugin is not a problem, I can update the normal, but yesterday I do not know what the wind node, no connection to the server, there has been a variety of problems above, Let's talk about how to solve the problem if the network is exhausted.

The first method once and for all, directly configure the VPN, but now want to find a fast and stable also free VPN is not easy, especially update the SDK to a few kb/s speed a file takes more than 400 minutes, so also give up the VPN.

Another way is to use the HTTP protocol instead of the HTTPS protocol, because the HTTPS protocol is encrypted, the mainland because it can not be reviewed, directly sealed, and the HTTP protocol is filtering processing, if you do not access the mess, update the SDK is no problem.
Under SDK manager tools->options Open SDK Manager settings, select "Force https://... sources to be fetched using http://...", Enforces the use of the HTTP protocol.
While updating the ADT plugin, use URL http://dl-ssl.google.com/android/eclipse instead of Https://dl-ssl.google.com/android/eclipse, This is also described in the official development documentation.
Yesterday, however, it was not accessible using the HTTP protocol.

One more troublesome way 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
These files, find the file name you want to download, directly with thunder download, ADT can download the ADT package directly on the official website to install. Specific ways to search by yourself.

The best way is to change the Hosts file method, update faster. WINDOWS in the C:\WINDOWS\system32\drivers\etc directory, Linux users open the/etc/hosts file.
After opening the file, add the following content.

#Google主页
203.208.46.146 www.google.com
#这行是为了方便打开Android开发官网 don't seem to turn right now.
74.125.113.121 developer.android.com
#更新的内容从以下地址下载
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

Add the above URLs, and then choose the HTTP protocol, you can update the normal.
Or you can do nothing, and a day or two may return to normal.

Paste the content that you need to add when you modify the Hosts file using various Google services.

#Hosts文件开始, this sentence does not need to be copied

#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

#网页快照
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 #Gmail中Gtalk聊天服务

#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 Suggestions (IE9)
203.208.46.146 clients5.google.com

#Google Code
203.208.46.146 code.google.com

#Picasa Web Albums
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 Personal Information
203.208.46.146 profiles.google.com
203.208.46.146 browsersync.google.com

#Google +
203.208.46.146 talkgadget.google.com #Google + Chat Service
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 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 developer.android.com

#Hosts文件结束, this sentence does not need to be copied

I use the last method to change the Hosts file above (if it is win7\8 will involve administrator rights, not allowed to directly modify the Hosts file, copy this file to other disks, after the modification, cover a little better), But I was in the case of successful configuration goagent, do not know if not to turn the words can.

PS: I am rather stupid, I believe there should be the same as me, do not know how to set up HTTPS for HTTs.

Under SDK Mangager tools->options tick in force https://... sources to be fetched using http://...

You can do it.

This article goes from Sina Blog: click Open link

Http://blog.sina.com.cn/s/blog_4a94a0db0100y4h7.html

Android SDK updates and workarounds for ADT Update problems

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.