1 Problem Description
An error occurred during a Gradle project building.
2 reasons
The reason is that the downloaded Gradle zip file is incomplete and cannot be built using Gradle.
3 Solutions
3.1 Delete the local Cache and download again
Gradle user Home = Gradle user home = Gradle user home
To open the wrapper/dists inside ~/. Gradle, you can see a cached gradle:
Delete Gradle version, IDEA will automatically download again.
3.2 Setting version-specificGradle
Gradle: download the latest Gradle file from XXX -all.zip: download the latest Gradle file from XXX -all.
Modify gradle/wrapper/gradle-wrapper.properties in the project folder by changing the distributionUrl to the local directory:
The default Gradle configuration is as follows:
Generally, modify the distributionUrl, if you want to check the error Settings.