When Android Studio compiles, it prompts that Gradle cannot download the solution

First, open the android studio project and find the project directory gradle\wrapper\gradle-wrapper.properties this file. It reads:
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-all The most important thing in .zip
is the bottom sentence, android studio will download the gradle plug-in that matches the current version online, and although this URL can be accessed, the speed is too slow, so each update takes a long time or directly times out. The following is the way I tried to solve the problem. First , download the plugin of this version http://services.gradle.org/distributions/gradle-1.9-all.zip through the download tool  . The download tool will download the file faster and then Directly copy the zip file, do not decompress and copy it to the following directory: C:\Users\Administrator\.gradle\wrapper\dists\gradle-1.9-all\3jdgemv0iv8uqohg3kcp2o88r1 
Re-close android studio and reopen or directly click Sync on the android studio toolbar Project Gradle Files
Android studio is an automatic update plug-in, no need to download.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325353909&siteId=291194637