Android SDK download and update failure resolution

Source: Internet
Author: User

When starting to build an Android development environment, the following error will always appear in the Download SDK:

[Java]View Plaincopy
  1. Failed to fetch URL http: //dl-ssl.google.com/android/repository/addons_list-1.xml.   

It is said that dl-ssl.google.com in the mainland was strong, the great heavenly Kingdom is really not let people live, the solution is to modify the C:\Windows\System32\drivers\etc\hosts file. Add a line:

[Java]View Plaincopy
  1. 74.125 . 237.1 dl-ssl.google.com

Note here is 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:

[Java]View Plaincopy
  1. # copyright  (c)   1993 2009  microsoft  corp.  
  2. #  
  3. # This  is a sample hosts file used by microsoft tcp/ip for  windows.   
  4. #
  5. # This file contains the mappings for IP addresses to host names. each
  6. # entry  should be kept on an individual line. The IP address  should  
  7. # be  placed in the first column followed by the corresponding  host name.  
  8. # The IP address and the host name should is separated by at least one
  9. # space.
  10. #
  11. # Additionally, comments (such as these) may is inserted on individual
  12. # lines  or following the machine name denoted by a  ' # '
  13. #
  14. # For example:
  15. #  
  16. #       102.54 9 4.97       rhino.acme.com          # source  server  
  17. #        38.25 6 3.10       x.acme.com               # x client host  
  18. # localhost name resolution is handled within DNS itself.
  19. #    127.0 0 .1         localhost  
  20. #    ::1               localhost  
  21. //Pro, is to add this sentence oh    
  22. 74.125 2 37.1         dl-ssl.google.com  
  23. 203.208.46.146 dl.google.com
    203.208.46.146 dl-ssl.google.com
then save, copy the modified Hosts file toC:\Windows\System32\drivers\etcdirectory, replace the file is good!!! We will be successful when we download the SDK again, such as:

Hey, it's done!!!

PS: added, in Mac or Linux, the Hosts file is located in /etc/hostsand can be edited using sudo vim/etc/hosts .

Android SDK download and update failure resolution

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.