Skip to content

Instantly share code, notes, and snippets.

@RidaRidss
Created April 27, 2018 18:03
Show Gist options
  • Save RidaRidss/f7c6e5aa7b0f73860a41c9b6bc3eeee6 to your computer and use it in GitHub Desktop.
Save RidaRidss/f7c6e5aa7b0f73860a41c9b6bc3eeee6 to your computer and use it in GitHub Desktop.
Error : 'gradle' is not recognized as an internal or external command, operable program or batch file.
Output :
C:\Users\Rida\start_app\android>./gradlew clean
'.' is not recognized as an internal or external command, operable program or batch file.
Solution :
==========
How to Configure Gradle?
1. Download the zipped file of Gradle from https://services.gradle.org/distributions/gradle-2.8-all.zip.
2. Unzip them and place them in your Windows machine at any specific location. For e.g. “C:\Program Files\”.
button at the left bottom of the desktop.
4. Right-click on “Computer” and click on “Properties”. This will open the Control Panel.
5. Click on “Advanced System settings” and then click on “Environment Variables” button.
6. Click on “New…”
button under the “System Variables” section and enter Variable name as ‘GRADLE_HOME’.
7. Provide the path of the Gradle file as Variable value, i.e. C:\Program Files\gradle-2.8
8. Click OK.
9. Select “path” variable under the “System Variables” section and click on “Edit” button.
10. Go to the end of variable value and add “;%GRADLE_HOME%\bin” and click on “OK” button.
11. Press “Windows + R” and type ‘cmd’. Click OK.
12. Type the command “gradle –v” on the command
13. Now the screen displays the version of the Gradle. This means that the Gradle is successfully configured on the given Windows machine.
@khurramrizvi
Copy link

Thanks!!

@AhmedGamiba
Copy link

Many thanks

@RidaRidss
Copy link
Author

👍

@dhidroid
Copy link

dhidroid commented Feb 8, 2024

thank you for sharing this 💓

@grafiktasarim
Copy link

'gradle' is not recognized as an internal or external command,
operable program or batch file.

@a-essawy
Copy link

'gradle' is not recognized as an internal or external command, operable program or batch file.

make sure you add "%GRADLE_HOME%\bin" as following, then restart CMD.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment