標籤:source fetching lis ... ror 2.x global ejs ges
今天更新sdk,遇到了更新下載失敗問題:
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml
Done loading packages.
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-2.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-10.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-10.xml, reason: HttpHostConnect Connection to https://dl-ssl.google.com refused
Done loading packages.
搜尋了下,解決方案如下:
解決國內訪問Google伺服器的困難:
1.啟動 Android SDK Manager ;
2.開啟主介面,依次選擇「Tools」、「Options...」,彈出『Android SDK Manager - Settings』視窗;
3.在『Android SDK Manager - Settings』視窗中,在「HTTP Proxy Server」和「HTTP Proxy Port」輸入框內填入mirrors.neusoft.edu.cn和80,並且選中「Force https://... sources to be fetched using http://...」複選框;4.設定完成後單擊「Close」按鈕關閉『Android SDK Manager - Settings』視窗返回到主介面;
5.依次選擇「Packages」、「Reload」。
如此,問題解決~
另,安裝nodejs時,需要手動添加node-cache和node-global檔案。
Android SDK下載和更新時遇到的問題&解決方案