Android SDK Manager 無法下載 SDK 問題?

今天剛下了個 Android SDK Manager r17 最新版,老是報如下的錯誤。。。估計 dl-ssl.google.com又被封殺了

Fetching http://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-6.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to http://dl-ssl.google.com refused
Done loading packages.

 

還是老辦法解決:(寫下來免得忘記~哈哈)

在SDK Manager下Tools->Options打開了SDK Manager的Settings,選中“Force https://… sources to be fetched using http://…”,強制使用http協議。
Windows在C:\WINDOWS\system32\drivers\etc打開/etc/hosts文件,添加
#google_android更新
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

 

發佈了45 篇原創文章 · 獲贊 5 · 訪問量 14萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章