- The speed of gradle is too slow each time you automatically update the
because the Gradle server is slow, so the update gradle is slower, it is recommended to download it first, Then manually add the download directory to the Gradle to increase the speed.
- Use the download tool to download the required version of Gradle (), note here that you should select a file similar to Gradle-2.12-all.zip .
- Open the Android Studio project directory: < project directory >\gradle\wrapper\ , note that the project directory here is the directory for the project you are compiling. In the wrapper directory with a file named gradle-wrapper.properties , open the file with a text editor and edit the name of the version you downloaded in the last act of the file. Gradle-2.14.1-all.zip
in the slice,
- on the toolbar of Android studio, click Sync Project with Gradle Files icon, sync, click, wait a minute, close the Android studio software directly (or enter Gradlew in the terminal window of Android Studio and see the start of a bunch of dots, Close Android Studio).
- to open the c:\user\< user name >.gradle\wrapper\dists directory on your machine, where the username is determined based on the user name you logged in. In this directory you will be issued a version of the directory you have just written in wrapper.properties (in this case, gradle-2.14.1), enter the directory you will see a series of alphanumeric directories, enter the directory, delete all files in the directory , copy the Gradle-2.x.x-all.zip (in this case: gradle-2.14.1-all.zip) file you just downloaded into the directory and do not unzip it.
- Restart Android Studio and click Sync Project with Gradle Files for update update OK (or enter Gradlew in the terminal window of Android studio for updates)
Ming slowly
Links: Http://www.jianshu.com/p/e887203e30f6
Source: Pinterest
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.
Android Studio Update Gradle failed resolution-Go