Android SDK相关问题

1. Android SDK Manager

卡在Fetching URL: http://dl-ssl.google.com/android/repository/repository-6.xml

或者Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-7.xml, reason: Connection to http://dl-ssl.google.com refused

解决方法:在hosts文件加入以下host,重启Android SDK Manager

74.125.237.1 dl-ssl.google.com

附上hosts文件修改方法:

windows:

用notepad打开C:\WINDOWS\system32\drivers\etc 中的hosts文件

Mac:

打开终端

输入sudo vi /etc/hosts

再输入密码

再输入i

移动光标到你需要修改的地方

完成后按esc, 然后输入:wq

猜你喜欢

转载自haking.iteye.com/blog/1726090