- Download the gradle and copy paste it into your program files after extracting the zip file Example : “C:\Program Files\gradle-5.1.1″.
- Check if java is installed on the system by using command java -version on your command prompt if not then install it.
- Set new System Variable GRADLE_HOME as gradle installation directory example “C:\Program Files\gradle-5.1.1“
- Append the PATH variable with “C:\Program Files\gradle-5.1.1\bin“
- Now open up and command prompt and write gradle -v to check if the Gradle is properly installed on your system.

Install Gradle in Ubuntu :
Install JDK
sudo apt update sudo apt install openjdk-8-jdk
Install Gradle
$ wget https://services.gradle.org/distributions/gradle-6.4.1-bin.zip -P /tmp
$ sudo unzip -d /opt/gradle /tmp/gradle-*.zip
$ sudo vi /etc/profile.d/gradle.sh
export GRADLE_HOME=/opt/gradle/gradle-6.4.1
export PATH=${GRADLE_HOME}/bin:${PATH}
$ source /etc/profile.d/gradle.sh
$ gradle -v