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
- 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.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
- 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