1. Download
Download address: http://services.gradle.org/distributions/
The latest version is: 4.6, the package I downloaded is: gradle-4.6-all.zip
2. Installation
On the basis that the JDK has been installed by default, decompress the compressed package just downloaded, for example, the decompressed path is: E:\tool\gradle-4.6
Next we configure environment variables
1. Create a new environment variable: GRADLE_HOME, fill in the full path just now: E:\tool\gradle-4.6
As shown in the figure:
Next, we add the Gradle path to the path of the system variable: ;%GRADLE_HOME%\bin, pay attention to the preceding semicolon, if it is win10, it is a record, no semicolon is required.
3. Test
Run gradle -v to check if the installation is correct. The success interface is as follows: