android sdk 超时 解决办法

来源:互联网 发布:上海数据库开发培训 编辑:程序博客网 时间:2024/05/16 02:44

打开SDK Manager,停止更新连接;在界面上方找Tools->Options打开了SDK Manager的Settings,

选中“Force https://… sources to be fetched using http://…”,强制使用http协议。

Windows在C:\WINDOWS\system32\drivers\etc打开/etc/hosts文件

ubuntu sudo gedit /etc/hosts

,添加

#google_android更新
203.208.46.146 dl.google.com

203.208.46.146 dl-ssl.google.com


连接就不超时了!!

adt(sdk) 20测试有效