简体   繁体   English

libGDX 错误失败:构建失败并出现异常

[英]libGDX Error FAILURE: Build failed with an exception

This is the error I get from the console of the program and it won't let me even import the gradle to Eclipse这是我从程序控制台得到的错误,它甚至不允许我将 gradle 导入 Eclipse

Generating app in C:\Users\mrgnh\Desktop\libGDXstuff Executing 'C:\Users\mrgnh\Desktop\libGDXstuff/gradlew.bat clean --no-daemon' To honour the JVM settings for this build a new JVM will be forked. Generating app in C:\Users\mrgnh\Desktop\libGDXstuff Executing 'C:\Users\mrgnh\Desktop\libGDXstuff/gradlew.bat clean --no-daemon' To honour the JVM settings for this build a new JVM will be forked . Please consider using the daemon: https://docs.gradle.org/6.7.1/userguide/gradle_daemon.html .请考虑使用守护进程: https://docs.gradle.org/6.7.1/userguide/gradle_daemon.html Daemon will be stopped at the end of the build stopping after processing守护进程将在构建结束时停止处理后停止

FAILURE: Build failed with an exception. FAILURE:构建失败并出现异常。

  • Where: Settings file 'C:\Users\mrgnh\Desktop\libGDXstuff\settings.gradle'其中:设置文件“C:\Users\mrgnh\Desktop\libGDXstuff\settings.gradle”

  • What went wrong: Could not compile settings file 'C:\Users\mrgnh\Desktop\libGDXstuff\settings.gradle'.出了什么问题:无法编译设置文件“C:\Users\mrgnh\Desktop\libGDXstuff\settings.gradle”。

startup failed: General error during semantic analysis: Unsupported class file major version 60启动失败:语义分析期间的一般错误:不支持 class 文件主要版本 60

It turns out I am blind and that libGDX does not support JDK 16 only 8-15 So when creating the gradle with the JDK 16 gradle System it wasn't working out事实证明我是盲人,libGDX 仅不支持 JDK 16 8-15 所以当使用 JDK 16 gradle 系统创建 gradle 时,它不是

Try to change to latest gradle website version of gradle in file: Gradle -> Wrapper -> gradle-wrapper.properties尝试在文件中更改为 gradle 的最新gradle 网站版本: Gradle -> Wrapper -> gradle-wrapper.properties

在此处输入图像描述

It helped me.它帮助了我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM