. Advertisement .
..3..
. Advertisement .
..4..
Hi, everybody. I’m a beginner in using Java programming. I am having a issue when trying to run the gradlew clean: “gradlew command not found”. The issue is as follow:
/gradlew clean
./gradlew: line 165: *.domain1.tld: command not found
./gradlew: line 165: *.domain2.tld: command not found
Error: Could not find or load main class clean
No command ‘gradlew’ found, did you mean: Command ‘gradle’ from package
‘gradle’ (universe) gradlew: command not found.
Please give me any methods to solve this issue. Thanks!!
The cause:
This is a general issue which every programmer has. There is not a specific cause of the above problem but I will suggest a solution for you.
Solution:
Measure 1. You should run the below code from your Windows Powershell when you use Windows. Use the ./ to seek in the present working directory because of no this code in the path.
Measure 2. You must create a Gradle wrapper first. And, you carry out the following code to make the Gradle wrapper.
New parts have to be seen in the project folder before you run the command. Now, you can carry out the Gradle wrapper by the below command.
Measure 3.
Try granting gradlew root privileges with typing this command if you make use of the Mac .
I hope you will solve the issue you have. Good luck!!!