-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

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!