Following steps need to be followed for fixing: "'gradle' is not recognized as an internal or external command" error.
- Download the zipped file of Gradle from https://services.gradle.org/distributions/gradle-2.8-all.zip.
- Unzip them and place them in your Windows machine at any specific location. For e.g. “C:\Program Files\”.
- Click on the Windows button at the left bottom of the desktop.
- Right-click on “Computer” and click on “Properties”. This will open the Control Panel.
- Click on “Advanced System settings” and then click on “Environment Variables” button.
- Click on “New…” button under the “System Variables” section and enter Variable name as ‘GRADLE_HOME’.
- Provide the path of the Gradle file as Variable value, i.e. C:\Program Files\gradle-2.8
- Click OK.
- Select “path” variable under the “System Variables” section and click on “Edit” button.
- Go to the end of variable value and add “;%GRADLE_HOME%\bin” and click on “OK” button.
- Press “Windows + R” and type ‘cmd’. Click OK.
- Type the command “gradle –v” on the command prompt.
- Now the screen displays the version of the Gradle. This means that the Gradle is successfully configured on the given Windows machine.
No comments:
Post a Comment