使用SDK Manager更新时出现问题Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refusedFailed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refusedFailed 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>更新ADT时无法解析https://dl-ssl.google.com/android/eclipse
大家肯定很急,我就不废话了,直接上解决办法了!
打开SDK Manager下Tools->Options,选中“Force https://… sources to be fetched using http://…”,强制使用http协议。
选取之后,有的用户可以更新出列表来。如果还是不能,继续下面的操作。
在地址栏里输入:C:\WINDOWS\system32\drivers\etc
我们会看到hosts文件,右击打开方式选择记事本。在里面把下面文字复制进去,内容如下(特别强调:是在原本的内容后面粘贴下面的内容,而不是覆盖):
#Google主页
203.208.46.146 www.google.com
#这行是为了方便打开Android开发官网 现在好像不VPN也可以打开
74.125.113.121 developer.android.com
#更新的内容从以下地址下载
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
有的用户接着就会看到加载出列表了。如果没有变化,重新打开SDK Manager。就会发现问题解决了。
如果还是无法加载出列表,还是出现红色内容,建议过几天再试试!
可以使用中科院镜像:https://forum.opencas.org/t/190
转自:http://jingyan.baidu.com/album/148a192196209d4d70c3b168.html