android studio 在线更新android sdk,遇到无法Fetching https://dl-ssl.google.com/...的解决方案

时间:2023-05-25 08:03:25

最近实在受不了eclipse的“迟钝”,准备入手Android studio开发环境,但是貌似不太顺利,成功安装了Android studio,在线更新Android adk的时候,总是遇到如下错误:

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...

参考了网上的资料,并实验找到了最终的解决办法:

方法1.C:/WINDOWS/system32/drivers/etc中的hosts文件在最后一行添加74.125.237.1 dl-ssl.google.com

方法2.打开SDK Manager.exe->选中tool栏->点options ,在下面Force https://...sources to be fetched using http://... 打上勾就行了,主要是把受保护的协议 https 转成普通http。然后再Proxy setting两项填上代理参数(找个FQ的代理),然后重新更新下载,速度还挺块的。

android studio 在线更新android sdk,遇到无法Fetching https://dl-ssl.google.com/...的解决方案

好了,开始入手Android studio了,也祝大家配置成功!

原文:http://blog.csdn.net/xiafeixiao/article/details/38725811