今天剛下了個 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