【Android Studio】Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connect


 

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connect - 千里马 - 众里寻他千百度,深中成就满分路

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

解决办法:更新sdk,遇到 Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason:.....

在网上找的资料

「HTTP Proxy Server」:mirrors.neusoft.edu.cn

「HTTP Proxy Port」   :80

选中Foce https://...sources to be fetched using https://...

  设置好了之后瞬间特别快~

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connect - 千里马 - 众里寻他千百度,深中成就满分路

点击“SDK Manager” - "Tools" - "Options", 设置见下图、

把上边的代理服务器改为mirrors.neusoft.edu.cn非常迅速下载成功

这样设置后应该就可以了。

 

如果以上的方法还不能成功的话,使用以下终极方法,指定Host:

74.125.237.1 dl-ssl.google.com 

具体操作方式:
点击桌面左下角开始菜单中的搜索,把以下路径,c:\windows\system32\drivers\etc,复制到搜索窗口中 ,找到host文件,其实是一个纯文本的文件,
1、用记事本打开
2、将:74.125.237.1 dl-ssl.google.com  添加至最后一行
3、保存关闭Host 

 

使用http协议而不是https协议,因为https协议进行了加密处理,大陆因为无法审查,直接封死,而http协议则进行过滤处理,如果不访问乱七八糟的东西,更新个SDK还是没问题的。
在SDK Manager下Tools->Options打开了SDK Manager的Settings,选中“Force https://… sources to be fetched using http://…”,强制使用http协议。
而在更新ADT插件的时候则使用网址http://dl-ssl.google.com/android/eclipse,而不是https://dl-ssl.google.com/android/eclipse

 

原文地址:http://cristalspring.blog.163.com/blog/static/144327425201501892850941/


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM