首页 > 移动平台 > 详细

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

时间:2015-07-09 12:48:15      阅读:252      评论:0      收藏:0      [点我收藏+]

问题:

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,

技术分享 

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

原文:http://www.cnblogs.com/lovemo1314/p/4632515.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!