gradle compilation script needs to re-download gradle problem

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:

  1. First download the gradle-2.8-all.zip package.
  2. 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:
  3. Then just run gradlew build.
  4. After installing gradle, just change gradle-wrapper.properties back

Guess you like

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