Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml

     Android SDK Manager  SDK Manager.exe下载全部平台时更新包的时候出现无法下载的情况

 

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: Unknown Host dl-ssl.google.com
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: IO Unknown Host dl-ssl.google.com
Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addon.xml, reason: IO Unknown Host dl-ssl.google.com
Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/extras/intel/addon.xml, reason: IO Unknown Host dl-ssl.google.com
Fetching URL: https://dl-ssl.google.com/android/repository/sys-img.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/sys-img.xml, reason: IO Unknown Host dl-ssl.google.com
Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/mips/sys-img.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/sys-img/mips/sys-img.xml, reason: IO Unknown Host dl-ssl.google.com
Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml, reason: IO Unknown Host dl-ssl.google.com
Done loading packages.

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml_第1张图片

 
解决办法:
设置本地hosts
windows里hosts位置在C:\Windows\System32\drivers\etc,找到hosts文件

直接在hosts文件的最后加一行:

74.125.237.1 dl-ssl.google.com

重新打开SDK Manager.exe就可以下载了

你可能感兴趣的:(android)