码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2015-07-09 12:48:53      阅读:121      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!