[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 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