Android SDK update failure Solution

Source: Internet
Author: User

Recently, when the company configured the android development environment and the android SDK was not updated successfully (the Google website was blocked), it tried various methods and finally succeeded. The solution was to modify C: \ windows \ system32 \ drivers \ etc \ hosts file. Add a line at the end of the file:

74.125.237.1Dl-ssl.google.com

Note that the hosts file is read-only and we do not have the permission to modify it. We need to copy the hosts file to the desktop or somewhere else, modify and save it, and copy the modified hosts file
C: \ windows \ system32 \ drivers \ etc directory. Replace the file!

 

The reason for this modification is that the Domain Name of the dl-ssl.google.com is blocked, and the server IP address corresponding to the domain name74.125.237.1 is not blocked. When accessing the network, the operating system first reads the configuration of the hosts file. If the IP address of the corresponding domain name is foundThe DNS server directly accesses the server.Many so-called web accelerators use hosts files. In this way, you can resolve an IP address locally without using DNS server, which saves some time.

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.