Connection to https://dl-ssl.google.com refused的解决办法

来源:互联网 发布:线切割操作方法编程 编辑:程序博客网 时间:2024/05/16 19:53

使用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 refused 
Fetched 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
  • 成功解决问题。
  • 如果仍然是refused,在cmd打开的dos窗口,执行命令ping dl-ssl.google.com,如果ping不通,则使用ping –t dl-ssl.google.com,等到可以ping通了再安装

补充: 
74.125.237.1 dl-ssl.google.com的来源:

C:/Users/test>ping dl-ssl.google.com

正在 Ping dl-ssl.google.com [74.125.237.1] 具有 32 字节的数据: 
来自 74.125.237.1 的回复: 字节=32 时间=104ms TTL=46 
来自 74.125.237.1 的回复: 字节=32 时间=102ms TTL=46 
来自 74.125.237.1 的回复: 字节=32 时间=104ms TTL=46

链接地址:http://www.th7.cn/Program/Android/201309/151627.shtml

0 0
原创粉丝点击