在配置好android开发环境后,打开Android SDK Manager想下载不一样版本的sdk,发现没法获取到相关数据,提示以下: android
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-8.xml解决方法:配置一下hosts文件则可,在文件末尾添加:
74.125.237.1 dl-ssl.google.com
以后重启Eclipse,再次打开Android SDK Manager则可。 windows
至于host文件的位置在不一样系统分别以下: fetch
一、windows系统中,位置为:C:\Windows\System32\drivers\etc文件夹中; google
二、Linux用户打开/etc/hosts文件; spa
三、Mac用户在finder中“Go to Folder...”填入“/etc/hosts”; .net
其余解决参考: xml
一、http://blog.csdn.net/gaojinshan/article/details/9871607 blog
203.208.46.146 www.google.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com