[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: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

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