gradle libGDX项目生成器每次尝试生成项目时都显示“生成失败”

eulz3vhy  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(93)

我试图使用libGDX项目设置在我的机器上安装libGDX,并将位置设置为它需要的一切。但每次我点击“生成”,我得到这个错误:

Generating app in C:\Users\lenovo\Desktop\test
Executing 'C:\Users\lenovo\Desktop\test/gradlew.bat clean --no-daemon'
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.5.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build 

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file 'C:\Users\lenovo\Desktop\test\settings.gradle' (C:\Users\lenovo\.gradle\caches\7.5.1\scripts\2e5ewf69m4vwrhf5dztt0u5q6).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
Done!
To import in Eclipse: File -> Import -> Gradle -> Existing Gradle Project
To import to Intellij IDEA: File -> Open -> build.gradle
To import to NetBeans: File -> Open Project...
Generating app in C:\Users\lenovo\Desktop\test
Executing 'C:\Users\lenovo\Desktop\test/gradlew.bat clean --no-daemon'
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.5.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build 

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file 'C:\Users\lenovo\Desktop\test\settings.gradle' (C:\Users\lenovo\.gradle\caches\7.5.1\scripts\2e5ewf69m4vwrhf5dztt0u5q6).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
Done!
To import in Eclipse: File -> Import -> Gradle -> Existing Gradle Project
To import to Intellij IDEA: File -> Open -> build.gradle
To import to NetBeans: File -> Open Project...
Generating app in C:\Users\lenovo\Desktop\test
Executing 'C:\Users\lenovo\Desktop\test/gradlew.bat clean --no-daemon'
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.5.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build 

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file 'C:\Users\lenovo\Desktop\test\settings.gradle' (C:\Users\lenovo\.gradle\caches\7.5.1\scripts\2e5ewf69m4vwrhf5dztt0u5q6).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
Done!
To import in Eclipse: File -> Import -> Gradle -> Existing Gradle Project
To import to Intellij IDEA: File -> Open -> build.gradle
To import to NetBeans: File -> Open Project...

字符串
我已经试着到处寻找,但我很难让这个工作。我是非常新的这一点,任何帮助将非常感谢。

dsekswqp

dsekswqp1#

错误是“不支持的类文件主要版本63”。
Java类文件版本63,是java jdk 19,所以它抱怨类文件已经为java版本19编译,但你使用的版本比版本19小。

相关问题