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 ~