Android SDK Manager 更新失败的解决方法
博客分类:
最近使用Android SDK Manager 更新Android SDK tools 发现经常更新失败,获取不到更新信息:
- Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
- Fetched Add-ons List successfully
- Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
- 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: peer not authenticated
- Fetched Add-ons List successfully
- Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
- Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-7.xml, reason: SSLPeerUnverified peer not authenticated
- Done loading packages.
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml 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: peer not authenticated Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-7.xml, reason: SSLPeerUnverified peer not authenticated Done loading packages.
上述是Android SDK Manager Log的更新失败的信息,如下图:

这个信息是网络上https的网络连接不上造成的,所以需要把https都换成http。
操作如下,点击SDK Manager的Tools->Options

选择 Force https://... sources to be fetched using http://
如下图,见红色框处

当然如果你有VPN或公司有代理可以连上美国的google,那可以在Proxy里面设置代理的IP和端口
设置完后更新就会成功
Log的结果如下:
- Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
- Fetched Add-ons List successfully
- Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml
- Done loading packages.
- Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
- Validate XML
- Parse XML
- Fetched Add-ons List successfully
- Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml
- Validate XML: http://dl-ssl.google.com/android/repository/repository-7.xml
- Parse XML: http://dl-ssl.google.com/android/repository/repository-7.xml
Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml Fetched Add-ons List successfully Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml Done loading packages. Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml Validate XML Parse XML Fetched Add-ons List successfully Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml Validate XML: http://dl-ssl.google.com/android/repository/repository-7.xml Parse XML: http://dl-ssl.google.com/android/repository/repository-7.xml
......
作者:无言
如果您认为阅读这篇博客让您有些收获,不妨点击一下右下角的【推荐】
如果您希望与我交流互动,欢迎微博互粉
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。



浙公网安备 33010602011771号