Reprinted: http://www.mobibrw.com/2015/2780
When building a project with gradlew, you always need to download gradle-2.8-all.zip. But gradle-2.8-all.zip is very large, about 60MB, and the server is abroad, so various downloads often fail.
The method to install from local is as follows:
- First download the gradle-2.8-all.zip package.
- Put the downloaded zip package in the {project.dir}\gradle\wrapper directory (that is, the same directory as gradle-wrapper.properties) and modify the {project.dir}\gradle\wrapper\gradle-wrapper.properties file. as follows:
- Then just run gradlew build.
- After installing gradle, just change gradle-wrapper.properties back