Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

I am getting Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain. I was getting BUILD SUCCESS for ./gradlew test --tests PortfolioManagerApplicationTest.testDebugValues but when I restarted my workspace i am getting this error. Kindly suggest some hints to resolve this .

Can you use ./gradlew clean and use your respective ./gradlew command again.

Sir, this command is not working for me.
Any other suggestion

Can you refresh the page and see, @ me if this doesn’t work as well.

If I have to type @me in Terminal… Yes it is not working.

Please check now, it’s working, also you have added mockito imports in your file. May I Know why?

Nothing happened, sir.

Hey, you’re in the wrong Directory :slight_smile: ,
go to the parent directory i.e , ~workspace/-ME_QMONEY
and then execute the commands.
Refer to the following FAQ.