Workaround for Android SDK Manager update failure

Source: Internet
Author: User

Workaround for Android SDK Manager update failure

Original address

Recently updated Android SDK tools with Android SDK Manager has found that frequent updates fail to get updated information:

Java code
  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.xmlFetched Add-ons list successfullyfetching Url:https://dl-ssl.google.com/android/repository/repository-7.xmldone loading packages. Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xmlFailed to fetch URL https:// Dl-ssl.google.com/android/repository/addons_list-2.xml, Reason:peer not authenticatedfetched Add-ons list Successfullyfetching url:https://dl-ssl.google.com/android/repository/repository-7.xmlfailed to fetch URL https:// Dl-ssl.google.com/android/repository/repository-7.xml, reason:sslpeerunverified peer not authenticatedDone loading Packages.

The above is an update failure information for Android SDK Manager log, such as:


This information is not caused by the network connection of HTTPS on the network, so we need to change HTTPS to HTTP.

To do this, click SDK Manager's Tools->options


Select Force https://... sources to be fetched using http://

For example, see the Red box



Of course, if you have a VPN or the company has agents can connect to the United States, Google, it can set the proxy IP and port



The update will succeed when you are finished setting up

The result of log is as follows:

Java code
  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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.