Download Gradle and unzip it to where you want to install it.
Then in Windows Search, find "System", and then select: "System" (control panel)
Click on the link "Advanced system settings."
Select environment variables
Then click the "Create" button under the user-defined variable and add GRADLE_HOME to the variable name and the path pointing to the root directory of the extracted files from Gradle to the variable value.

In the "System Variables" section, select "Path" and click the "Edit" button. In the next window, click the "Create" button and add the path to the bin directory of the extracted files from Gradle.

Ranuka
source share