Android SDK Manager无法更新的解决

最近玩ubuntu系统,以前windows下下载的SDK文件不能用了,只能重新下载,安装完Eclipse和ADT插件,却发现无法更新SDK,显示为:

Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused

Fetched Add-ons List successfully

Fetching URL: https://dl-ssl.google.com/android/repository/repository-6.xml

Eclipse输出错误 reason: Connection to https://dl-ssl.google.com refused

估计这又是伟大GFW的功劳,我们只需要配置一下hosts文件,在文件的末尾添加下面一句:

74.125.237.1 dl-ssl.google.com

windows系统中hosts文件的位置为:C:\Windows\System32\drivers\etc ,找到该文件并已文本形式打开,添加上面一句话,保存之后关闭,重启Eclipse打开Android SDK Manager,ok!

如果还不行的话,试试下面应该就可以了

已有IDE,自动更新自动更新Android SDK时出现以下错误:

Download interrupted: Connection to https://dl-ssl.google.com refused

 

网上很多的解决办法是,修改host文件。其实只需要将https协议强制改为http就可以了:

 

步骤一:打开Android SDK Manager,Tools,Option。

步骤二:选中 Others , Force https:// sources to be fatched using http://

 

 

 

源地址:http://blog.csdn.net/lizhibin3944/article/details/10942463

猜你喜欢

转载自kunzhong1-yeah-net.iteye.com/blog/2029300