Closed nabato closed 1 year ago
Which version of Gradle were you using?
I encountered the same error after upgrading to either 7.5
or 7.5.1
. Upgrading to 7.6
appears to have resolved this for me (on macOS 13.1
).
See #335
@lukeribchester,
it were 7.5.*
and 7.6
. I remember it because I updated dependencies in build.gradle.kts
and gradle.properties
to the previous versions and to the next available versions in order to track this bug.
Changing
jvmToolchain
version sometimes randomly leads to:Error: Could not find or load main class Main
Adding JDK of needed version through plugin settings or Intellij project settings or manually adding to classpath doesn't help. Invalidating caches of Intellij doesn't help. Gradle's
clean
task doesn't help.Only
./gradle/cache
deletion helps.OS: MacOS.
P.S. Generally it looks like plugin team of Intellij is dedicated to do make-work and overcomplicate stuff for the sake of it. Dozens of cryptic details in the worst build system I've encountered.