UnsupportedClassVersionError on Gradle build with only JDK 11 installed?

后端 未结 1 1426
太阳男子
太阳男子 2021-01-19 22:21

Getting this error when trying to run gradle build.

org/openjfx/gradle/JavaFXPlugin has been compiled by a more recent version of the Java Runtime (cl

1条回答
  •  Happy的楠姐
    2021-01-19 22:31

    It may be that the Gradle JVM is still set incorrectly. If you are using IntelliJ, you can change this by going to File > Settings > Build, Execution, Deployment > Build Tools > Gradle and change Gradle JVM to 11 (or to the Project JDK).

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