google被封了下载速度竟然能到1M,记录一下
修改C:\Windows\System32\drivers\etc\hosts文件,添加代码:
最好的方法还是改hosts文件的方法,更新速度较快。
Windows在C:\WINDOWS\system32\drivers\etc目录下
Linux用户打开/etc/hosts文件。
打开文件后添加以下内容。
#Google主页
203.208.46.146 www.google.com
#这行是为了方便打开Android开发官网 现在好像不翻墙也可以打开
74.125.113.121 developer.android.com
#更新的内容从以下地址下载
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
203.208.46.146 groups.google.com
203.208.46.146 appengine.google.com
启动 Android SDK Manager ,打开主界面,依次选择「Tools」、「Options...」,弹出『android SDK Manager - Settings』窗口;
在『Android SDK Manager - Settings』窗口中,在「HTTP Proxy Server」和「HTTP Proxy Port」输入框内填入mirrors.neusoft.edu.cn和80,并且选中「Force https://...sources to be fetched using http://...」复选框。设置完成后单击「Close」按钮关闭『Android SDK Manager - Settings』窗口返回到主界面;
依次选择「Packages」、「Reload」。
本文介绍了一种通过修改hosts文件来加速访问Google服务的方法,并提供具体的IP地址及域名配置。此外,还给出了针对Android SDK Manager的代理设置步骤,以提高资源下载速度。

4万+

被折叠的 条评论
为什么被折叠?



