中国民工

顽石-滚过的路总该留下痕迹

Android环境搭建问题的解决:Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused

第一次搭建Android环境,遇到这个问题:
Fetching http://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-6.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to http://dl-ssl.google.com refused
Done loading packages.
折腾了几天,有点懵了~~
不过刚刚终于柳暗花明:在http://stackoverflow.com/questions/2766713/android-download-the-android-sdk-components-for-offline-install上找到了适合这个问题的解法。

按照上述步骤,先在netstat命令来查看proxy地址,如下:

我的PC上显示的proxy是上面绿色框内的地址,再把这个地址填入到setting:

再重新Reload(Android SDK Manager菜单: Packages->Reload),终于成功了:


趁下载和升级的过程,简单的总结一下这个步骤,希望能对遇到这个问题的网友有所帮助。:D

posted on 2012-04-06 23:00 中国民工 阅读(44949) 评论(11)  编辑 收藏 引用 所属分类: Android

评论

# re: Android环境搭建问题的解决:Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused 2012-05-27 09:50 只想吃饭

Android SDK Manager settings在哪里打开的啊?找不到啊。。。求帮忙都快疯了  回复  更多评论   

# re: Android环境搭建问题的解决:Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused[未登录] 2012-09-02 16:09 zz

tools->options  回复  更多评论   

# re: Android环境搭建问题的解决:Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused 2012-09-04 13:22 felix

thanks for your info,it makes me work  回复  更多评论   

# re: Android环境搭建问题的解决 2013-01-16 12:45 kindness

根据你的方法,问题解决了,谢谢楼主,看来的我的字数太少,被怀疑发广告了,真是太麻烦了。  回复  更多评论   

# re: Android环境搭建问题的解决:Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused 2013-03-16 12:44 IT伯乐

解决了!  回复  更多评论   

# re: Android环境搭建问题的解决:Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused 2013-08-30 17:30 张晚

非常好~~  回复  更多评论   

# re: Android环境搭建问题的解决:Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused 2013-11-23 15:51 jt

多谢,我只把force https to http 勾上就OK了  回复  更多评论   

# re: Android环境搭建问题的解决:Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused[未登录] 2015-04-17 03:57 123

怎么知道哪个地址是想要的呢?  回复  更多评论   

# re: Android环境搭建问题的解决:Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused 2015-05-05 13:34

1KB也敢出来丢人?  回复  更多评论   

# re: Android环境搭建问题的解决:Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused 2015-05-12 16:04 追问

netstat:怎么知道哪一个是我的代理地址  回复  更多评论   

# re: Android环境搭建问题的解决:Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused[未登录] 2016-05-09 16:13 dd

转载的,希望有帮助到大家,也谢谢提供该解决方案的朋友。
解决国内访问Google服务器的困难:
1.启动 Android SDK Manager ;
2.打开主界面,依次选择「Tools」、「Options…」,弹出『Android SDK Manager – Settings』窗口;
3.在『Android SDK Manager – Settings』窗口中,在「HTTP Proxy Server」和「HTTP Proxy Port」输入框内填入mirrors.neusoft.edu.cn搜索和80,并且选中「Force https://… sources to be fetched using http://…」复选框;4.设置完成后单击「Close」按钮关闭『Android SDK Manager – Settings』窗口返回到主界面;
5.依次选择「Packages」、「Reload」。 @只想吃饭
  回复  更多评论   


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理