安装Android开发环境 Failed to fetch URL问题

安装Android开发环境 Failed to fetch URL问题

使用SDK Manager.exe安装Android开发环境的时候会遇到: 

Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason:Connection to https://dl-ssl.google.com refusedFetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-8.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-8.xml, reason: HttpHostConnect Connection to https://dl-ssl.google.comrefused

这个问题需要修改一下host文件:

方法如下:

用notepad打开C:/WINDOWS/system32/drivers/etc中的hosts文件

在最后一行添加74.125.237.1 dl-ssl.google.com

成功解决问题。

如 果仍然链接失败,就打开SDK Manager.exe,选中tool栏,点Android SDK Manager ,在下面Force https://...sources to be fetched using http://... 打上勾就行了,这个主要是把受保护的协议 https 转成普通http

 

转自:http://jingyan.baidu.com/article/2c8c281df3dcd50009252a56.html

posted @ 2014-11-12 14:46  克洛诺  Views(357)  Comments(0)    收藏  举报