[fix] bash: gradlew: command not found


In you are trying to run the gradle wrapper command on your Unix-Like operating system such as Ubuntu and you get the below error,

# gradlew clean
bash: gradlew: command not found

Well you need to run ./gradlew followed by your command instead of just gradlew.

bash- gradlew- command not found

Also make sure that you have needed permission to execute gradlew, or else provide the execute permissions as follows

chmod +x gradlew
-

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