Android SDK updates and workarounds for ADT Update problems

Source: Internet
Author: User

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/etc/hosts file.
after opening the file, add the following content.

#Google主页
203.208.46.146 www.google.com
#这行是为了方便打开Android开发官网 don't seem to be able to open a VPN 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.

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.