zoukankan      html  css  js  c++  java
  • Android SDK Manager 更新失败的解决方法

    Android SDK Manager 更新失败的解决方法

    原文地址

    最近使用Android SDK Manager 更新Android SDK tools 发现经常更新失败,获取不到更新信息:

    Java代码 复制代码 收藏代码
    1. Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml   
    2. Fetched Add-ons List successfully   
    3. Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml   
    4. Done loading packages.   
    5. Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml   
    6. Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: peer not authenticated   
    7. Fetched Add-ons List successfully   
    8. Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml   
    9. Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-7.xml, reason: SSLPeerUnverified peer not authenticated   
    10. 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的结果如下:

    Java代码 复制代码 收藏代码
    1. Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml   
    2. Fetched Add-ons List successfully   
    3. Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml   
    4. Done loading packages.   
    5. Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml   
    6. Validate XML   
    7. Parse XML   
    8. Fetched Add-ons List successfully   
    9. Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml   
    10. Validate XML: http://dl-ssl.google.com/android/repository/repository-7.xml   
    11. Parse XML:    http://dl-ssl.google.com/android/repository/repository-7.xml  
  • 相关阅读:
    初学者--bootstrap(六)组件中的字体图标----在路上(9)
    clearfix的最佳方案----在路上(22)
    css的五种属性值----在路上(21)
    float---浮动带来的影响与清除浮动带来的影响方法----在路上(20)
    form表单 ----在路上(15)
    css中常见的属性-----在路上(14)
    Linux | 管道、重定向命令
    C++ | from_string函数的写法
    C++/C | 关于char* char[] char = new char[n]
    C++内存管理 | 01 C++ memory primitives
  • 原文地址:https://www.cnblogs.com/linlf03/p/3850179.html
Copyright © 2011-2022 走看看