使用eclipse开发Android应用时, 需要安装ADT, 以前能顺利安装, 但现在发现始终无法连接上服务器, 经过调查才发现原来 Google 服务器被 GCD 和谐掉了。
但是, 我们总不能不工作, ADT还是要安装的, 可以通过如下方式避开GCD的限制:
如果是Windows平台,修改文件 C:\windows\system32\drivers\etc\hosts, 在文件中添加 74.125.237.1 dl-ssl.google.com
如果是Linux平台,修改文件 /etc/hosts, 在文件中添加 74.125.237.1 dl-ssl.google.com
之后, 启动eclipse, 向以前一样 在 Help-->Install new software , 输入 http://dl-ssl/google.com/android/eclipse 或 https://dl-ssl/google.com/android/eclipse 就可以安装了。
但是, 我们总不能不工作, ADT还是要安装的, 可以通过如下方式避开GCD的限制:
如果是Windows平台,修改文件 C:\windows\system32\drivers\etc\hosts, 在文件中添加 74.125.237.1 dl-ssl.google.com
如果是Linux平台,修改文件 /etc/hosts, 在文件中添加 74.125.237.1 dl-ssl.google.com
之后, 启动eclipse, 向以前一样 在 Help-->Install new software , 输入 http://dl-ssl/google.com/android/eclipse 或 https://dl-ssl/google.com/android/eclipse 就可以安装了。