Android SDK Manager沒法獲取其餘版本的問題

       在配置好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
相關文章
相關標籤/搜索