解决:android sdk 安装时无法连接到google,连接被拒绝

来源:互联网 发布:知己知彼软件好不好 编辑:程序博客网 时间:2024/05/18 17:57

在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更新
216.239.38.125 dl-ssl.google.com
216.239.38.125 dl.google.com