相信一些人刚开始搞android的安装开发环境的时候,打开SDK Manager.exe时会遇到:Failed to fectch URl https://dl-ssl.google.com/android/repository/addons_list.xml, reason: Connection to https://dl-ssl.google.com refused
需要修改一下host文件:
方法如下:
- 用notepad打开C:\WINDOWS\system32\drivers\etc中的hosts文件
- 在最后一行添加74.125.237.1 dl-ssl.google.com
- 成功解决问题。
在SDK Manager下Tools->Options打开了SDK Manager的Settings,选中“Force https://… sources to be fetched using http://…”,强制使用http协议。
Windows在C:\WINDOWS\system32\drivers\etc打开/etc/hosts文件,添加
#google_android更新
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
Windows在C:\WINDOWS\system32\drivers\etc打开/etc/hosts文件,添加
#google_android更新
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com