Solution to Android SDK download and update failure

Source: Internet
Author: User
Tags android sdk manager

Solution to Android SDK download and update failure

When you use sdk manager to update the sdk, you may find the following error message during the update process:

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-8.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: Connection to https://dl-ssl.google.com refused
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-8.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-8.xml, reason: HttpHostConnect Connection to https://dl-ssl.google.com refused
Done loading packages.

There are countless online solutions to search, some of which are feasible and some are not feasible. Let's briefly describe them here ~ (This test is feasible)

1. perform the following configuration in the host file of the local machine:

# Google Homepage
203.208.46.146 www.google.com
# This line is used to enable the official Android development website. Now it seems that you can enable it without using VPN.
#74.125.113.121 2.16.android.com
# Download the updated content from the following address:
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
74.125.237.1 dl-ssl.google.com

2. Start Android SDK Manager;
3. Open the main interface, select "Tools" and "Options...", and the "Android SDK Manager-Settings" window is displayed;
4. in the "Android SDK Manager-Settings" window, enter mirrors.neusoft.edu.cn and 80 in the "HTTP Proxy Server" and "HTTP Proxy Port" input boxes, and select "Force https: //... sources to be fetched using http ://... "check box; 4. click Close to Close the Android SDK Manager-Settings window and return to the main interface;
6. Select Packages and Reload 」

As above, solution ~

Related Article

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.