self-confidence,the source of all the power

导航

Android SDK更新 Connection to http://dl-ssl.google.com refused

问题:

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>

方法:

将https://修改为http://
修改方法是:如下图,在Android SDK Manager->Tools-Options...选项界面,
将“Force https://… sources to be fetched using http://…”勾选!

可以在文件(C:\Windows\System32\drivers\etc\hosts)中,添加如下几行:
203.208.46.146 www.google.com
203.208.46.146 dl.google.com 
203.208.46.146 dl-ssl.google.com

这几个IP不一定管用,所以如果这样还不行,就需要自己去找一个能ping通的IP了。

在这个网站上 http://tool.chinaz.com/ 选择超级ping,

 

posted on 2015-07-09 10:57  漩涡鸣人  阅读(268)  评论(0编辑  收藏  举报