This problem almost every student who just use Android studio will come across, there are various methods on the Internet, some say that using local gradle, I have tried many times, every time I start Android Studio will still check the update, so the fundamental solution is to prevent it from updating.
In fact, the truth is very simple, find the project automatically update the address of the request, the address to replace the good, but this simple thing still need a lot of action to complete.
The first step, to download Gradle, address: Click Download gradle, download do not have to unzip;
The second step in Android Studio is to find the project to be modified, project name->gradle->wrapper->gradle-wrapper.properties, you will see:
The last line is the culprit, because this address is sometimes inaccessible, resulting in a stuck, we will replace this address can be accessed address, can completely solve the problem;
The third step, after the second step, the problem again, this can access the address how to set it, someone said to download a good gradle to the network disk, but I did so, found that there is no download, I do not know whether it is only I have encountered this problem, if you also met, then use my method, is to build a local server, and then put the downloaded gradle on the server;
Fourth step, here by the way how to build a local server, the method is very simple, control panel----open or close the Windows feature->internet information services, such as, all options are checked
Wait a few minutes after completion, in the browser input http://localhost/, a welcome page is set to succeed, if not appear on multiple requests to visit several times;
Fifth step, then find the site, usually under the system directory, I here is C:\inetpub\wwwroot, and then put the download good gradle into this folder, and then finally have a hundred available address;
The sixth step, go back to the second step of the configuration file, the last line address is replaced by: Http://localhost/gradle-2.10-all.zip, save, restart, finished!
Of course, there may be another error after the end, that is, the local Gradle version and the target version of the inconsistency, this is simple, to the official website download and the same version of the target version.
Android Studio Boot after refreshing Gradle project