Android SDK下載和更新失敗的解決方法

今天更新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-8.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-8.xml
 Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-8.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」輸入框內填入mirrors.neusoft.edu.cn,在「HTTP Proxy Port」輸入框內填入80,而且選中「Force https://... sources to be fetched using http://...」複選框;
4.設置完成後單擊「Close」按鈕關閉『Android SDK Manager - Settings』窗口返回到主界面;
5.依次選擇「Packages」、「Reload」。
www.yhyvr.com

 android

相關文章
相關標籤/搜索