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.
- 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.
- 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:
- 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