[Fix] ./gradlew: Permission denied

-bash: ./gradlew: Permission denied

If while trying to run Gradle Command from Terminal for your Java (or Android) Project you get the permission denied error. All you need to do is run the below command to provide execute permission to the gradlew file.

chmod +x gradlew

Note: Make sure that you are running this command from the location where you have the gradlew file or else you will get an error.

chmod: gradlew: No such file or directory
Fix - gradlew- Permission denied

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!