Android Environment Setup--fix SDK download slow/timeout

Source: Internet
Author: User
Tags domain name server android sdk manager

when we finish installing SDK Manager after the what platforms and tools are not available, this time you need to download the required Tools and the Android version of the series. But because Google is blocked . Computer Access google.com time is very slow. This results in a particularly slow or network outage during the download process.

Workaround : We can improve The download speed of the SDK by modifying the Hosts file.

    1. open w indows Explorer

"#google_android更新 203.208.46.146 dl.google.com 203.208.46.146 dl-ssl.google.com".

It is important to note that the intervening spaces and line breaks should be handled with caution. Where the "#" after the content is the comment content, after entering the text, save close.

    1. Open the Android SDK manager that has been downloaded, and then in the Tool->option option, you force the HTTPS resource acquisition method to be replaced by the HTTP protocol acquisition:

    1. and then you can download what you need. Tools and the Android the virtual machine. This speed is like taking medicine.

how the Hosts file works

Now let's look at how the hosts work in Windows.

We know that access to the Web site on the network, the first through the DNS server to access the network domain name (xxxx.com) to resolve to XXX.XXX.XXX.XXX IP address, the computer can access the network domain name.

For each domain request we have to wait for the domain name server to return the IP information, so that the efficiency of access to the network will be reduced, because DNS to do domain name resolution and return IP will take time.

In order to improve the resolution efficiency of the frequently accessed network domain name, we can achieve the goal by using the mapping relation of the domain name and IP in the hosts file. According to the Windows system, before a DNS request is made, the Windows system first checks to see if the network domain name Mapping is in its own hosts file. If so, call this IP address mapping, and if not, present the domain name resolution to the known DNS server. This means that the hosts request level is higher than DNS.

Because of the mapping, when we enter the domain name, the computer can quickly resolve the IP, instead of requesting a DNS server on the network. So it speeds up the download.

Android Environment Setup--fix SDK download slow/timeout

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.