Troubleshooting the Android SDK download and update failure method _android

Source: Internet
Author: User
Tags android sdk manager

When you recently changed your computer and started building an Android development environment, the download SDK always had the following error:

Copy Code code as follows:

Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml.


Said Dl-ssl.google.com was strong in the mainland, the solution is to modify the C:\Windows\System32\drivers\etc\hosts file . Add a line:

Copy Code code as follows:

74.125.237.1 dl-ssl.google.com

Here should be noted that the Hosts file is read-only, we do not have permission to modify, we need to copy the Hosts file to the desktop or other places, and then modify the code as follows:
Copy Code code as follows:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings's IP addresses to host names. each
# entry should is kept on a individual line. The IP address should
# is placed in the ' the ' followed by the corresponding host name.
# The IP address and the host name should is separated by at least one
# space.
#
# Additionally, comments (such as) may is inserted on individual
# lines or following the machine name denoted by a ' # ' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source Server
# 38.25.63.10 x.acme.com # x client Host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
#:: 1 localhost
Kiss, is to add this sentence oh
74.125.237.1 dl-ssl.google.com


Then save, copy the modified Hosts file to the C:\WINDOWS\SYSTEM32\DRIVERS\ETC directory, replace the file is good!!! We'll be successful when we download the SDK again, as shown in the following figure:

Hey, it's done!!!
PS: Add, in Mac or Linux, the Hosts file location is /etc/hosts, you can use sudo vim/etc/hosts to edit.

Other Netizen's supplement:

After the Android SDK is downloaded, it is usually necessary to update the version of the SDK's corresponding platform, but when we start the update, we usually prompt "Failed to fetch URL Https://dl-ssl.google.com/android/ Repository/addons_list-2.xml, reason:hostname in certificate didn ' t match: <dl-ssl.google.com>!= < www.google.com> OR <www.google.com> "error, which leads to an inability to update the Android SDK, provides a way to solve the SDK update and hopefully is useful for everyone;

Convenient for others is also convenient for their own, if you feel that the line on the point of praise, so that can help others to find a faster way to solve the problem, there are questions can also leave a message oh, thank you!

Baidu cloud of video and software address: http://pan.baidu.com/s/1o6sNDqy

Tools/raw Materials

Win7 x64

Android-sdk-windows R23

Method/Step

1, download the Server Agent tool, the above Baidu Cloud address has, after decompression (need to extract two times), installation, specific can see the Baidu cloud address of the video.

2, start the Server Agent tool "Free proxy Server", as follows:

3, open the Android SDK Manager "" D:\Android\android-sdk-windows\SDK Manager.exe "", you will find the following error pop-up

4, open "Android SDK manager->tools->options ...", set the server proxy address, server proxy address can be queried from the server Agent software, the following figure:

5, Reopen "" D:\Android\android-sdk-windows\SDK Manager.exe "", the operating effect is as follows:

6, the Android SDK in the update process will encounter the problem of update failure as shown in the picture, click on the installation can be resolved

End

Original Author: Faucault

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.