android SDK 更新出现错误的解决办法

  

在更新SDK时,经常会出现更新不了的问题

会出现如下LOG

Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml,
reason: Stub!
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml,
reason: Stub!
Fetching URL: file://d:/java/android-sdk-windows/tools/repository-5.xml
Failed to fetch URL file://d:/java/android-sdk-windows/tools/repository-5.xml/addon.xml,
reason: Stub!
Done loading packages.


解决办法:C:\WINDOWS\system32\drivers\etc\HOST文件

末尾加上:74.125.237.1 dl-ssl.google.com

你可能感兴趣的:(android SDK 更新出现错误的解决办法)