Android SDK Manager無法更新問題解決辦法
最近玩ubuntu系統,以前Windows下下載的SDK文件不能用了,只能重新下載,安裝完Eclipse和ADT插件,卻發現無法更新SDK,顯示為:
Fetching https://dl-ssl.Google.com/android/repository/addons_list-1.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-6.xml
Eclipse輸出錯誤
reason: Connection to https://dl-ssl.google.com refused
估計這又是偉大GFW的功勞,我們只需要配置一下hosts文件,在文件的末尾添加下面一句:
74.125.237.1 dl-ssl.google.com
windows系統中hosts文件的位置為:C:/Windows/system32/drivers/etc ,找到該文件并已文本形式打開,添加上面一句話,保存之后關閉,重啟Eclipse打開Android SDK Manager,ok!
Ubuntu系統hosts文件的位置為:/etc/hosts,可以通過命令:
sudo gedit /etc/hosts對該文件進行編輯
感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
新聞熱點
疑難解答