Error: Could not find or load main class org.gradle.launcher.GradleMain

后端 未结 2 2004
攒了一身酷
攒了一身酷 2021-01-17 11:51

I\'m new to Gradle and while trying to install Gradle in my PC with Windows OS, I got the below mentioned error

Error: Could not find or load main class org         


        
相关标签:
2条回答
  • 2021-01-17 12:00

    I stopped all the gradle daemons by running ./gradlew --stop and the error was resolved for me.

    0 讨论(0)
  • 2021-01-17 12:03

    Basically this means that Gradle can't find your gradle/wrapper/gradle-wrapper.jar.

    You have to follow Step 3 and setup environment variables:

    Microsoft Windows users

    In File Explorer right-click on the This PC (or Computer) icon, then click Properties -> Advanced System Settings -> Environmental Variables.

    Under System Variables select Path, then click Edit. Add an entry for C:\Gradle\gradle-3.5\bin. Click OK to save.

    Source: https://gradle.org/install#configure

    The easiest way, is to simply use gradlew.bat in your project and it will auto download Gradle for you!

    0 讨论(0)
提交回复
热议问题