在安装android sdk 的时候老是出现的错误 5
Connection to https://dl-ssl.google.com refused
Downloading Documentation for Android SDK, API 15, revision 2
Connection to https://dl-ssl.google.com refused
Downloading SDK Platform Android 4.0.3, API 15, revision 3
Connection to https://dl-ssl.google.com refused
Downloading SDK Platform Android 4.0, API 14, revision 3
Connection to https://dl-ssl.google.com refused
Downloading SDK Platform Android 3.2, API 13, revision 1
Connection to https://dl-ssl.google.com refused
Downloading SDK Platform Android 3.1, API 12, revision 3
Connection to https://dl-ssl.google.com refused
Downloading SDK Platform Android 3.0, API 11, revision 2
是怎么回事,该怎么办? 展开
解压Android SKD
执行如上目录下的文件:SDK Setup.exe,(机器人图标的那个) 注意:一般的话会出现 Failed to fetch URL https://dlssl.google.com/android/repository/repository.xml,所以应该修改如下几个地方:
a.修改Available Packages,点击"add Site..",增加:http://dlssl.google.com/android/repository/repository.xml,当然了,可以删除原来使用 https做连接的site.这个只能更新一些API的package.
b.修改代理配置:Settings里Http Proxy Server:10.159.192.62,Http Proxy Port:8080,选择如下两个选项卡:Force https//.....using http...,还有一个:Ask Before restaring ADB.
c.选择Installed package,里面会有SDK1.1,1.5,1.6,2.0和多个版本的APIs及Usb Driver package. 至此,所有SDK安装完毕。CALL,也不知中国为什么封技术性的网站,按照如上做能够省出更多的时间来。