[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

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap