SDK更新失敗Failed to fectch URl https://dl-ssl.google.

當咱們在更新SDK時,經常會遇到Failed to fectch URl https://dl-ssl.google.com/android/repository/addons_list.xml, reason: Connection to https://dl-ssl.google.com refused這個問題 android

 

解決的辦法是: fetch

1.打開C:\WINDOWS\system32\drivers\etc中的hosts文件, google

添加74.125.237.1 dl-ssl.google.com spa

203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
xml

2.在SDK Manager下Tools->Options打開了SDK Manager的Settings,選中「Force https://… sources to be fetched using http://…」,強制使用http協議。 ssl

 

相關文章
相關標籤/搜索