• <small id='3hcR5'></small><noframes id='3hcR5'>

    <tfoot id='3hcR5'></tfoot>
    <legend id='3hcR5'><style id='3hcR5'><dir id='3hcR5'><q id='3hcR5'></q></dir></style></legend>

    1. <i id='3hcR5'><tr id='3hcR5'><dt id='3hcR5'><q id='3hcR5'><span id='3hcR5'><b id='3hcR5'><form id='3hcR5'><ins id='3hcR5'></ins><ul id='3hcR5'></ul><sub id='3hcR5'></sub></form><legend id='3hcR5'></legend><bdo id='3hcR5'><pre id='3hcR5'><center id='3hcR5'></center></pre></bdo></b><th id='3hcR5'></th></span></q></dt></tr></i><div id='3hcR5'><tfoot id='3hcR5'></tfoot><dl id='3hcR5'><fieldset id='3hcR5'></fieldset></dl></div>
      • <bdo id='3hcR5'></bdo><ul id='3hcR5'></ul>

        语义分析期间的一般错误:不支持的类文件主要版

        时间:2023-05-18
      1. <small id='RA5Do'></small><noframes id='RA5Do'>

          <tbody id='RA5Do'></tbody>

            <bdo id='RA5Do'></bdo><ul id='RA5Do'></ul>
            <tfoot id='RA5Do'></tfoot>
            <i id='RA5Do'><tr id='RA5Do'><dt id='RA5Do'><q id='RA5Do'><span id='RA5Do'><b id='RA5Do'><form id='RA5Do'><ins id='RA5Do'></ins><ul id='RA5Do'></ul><sub id='RA5Do'></sub></form><legend id='RA5Do'></legend><bdo id='RA5Do'><pre id='RA5Do'><center id='RA5Do'></center></pre></bdo></b><th id='RA5Do'></th></span></q></dt></tr></i><div id='RA5Do'><tfoot id='RA5Do'></tfoot><dl id='RA5Do'><fieldset id='RA5Do'></fieldset></dl></div>

                1. <legend id='RA5Do'><style id='RA5Do'><dir id='RA5Do'><q id='RA5Do'></q></dir></style></legend>
                  本文介绍了语义分析期间的一般错误:不支持的类文件主要版本 57的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我正在尝试为桌面游戏设置 libgdx,当我尝试生成项目时出现此错误并且构建失败.我有最新版本的 Java(13.0.2) 和 Gradle(6.6),它们都设置为路径中的环境变量.有人可以帮帮我吗?

                  I'm trying to setup libgdx for a desktop game and when I try to generate the project I have this error and the build fails. I've the latest versions of Java(13.0.2) and Gradle(6.6), both set as environment variables in the path. Can somebody help me?

                  错误如下所示:

                  Could not compile settings file 'C:Users
                  oemiDesktopTestsettings.gradle'.
                  > startup failed:
                    General error during semantic analysis: Unsupported class file major version 57
                    
                    java.lang.IllegalArgumentException: Unsupported class file major version 57 
                  

                  推荐答案

                  这不是 LibGDX 问题.Gradle 5 与 Java 13 不兼容.您需要将 Gradle(项目中的包装版本)更新到 Gradle 6 或更高版本,或者需要使用较低版本的 JRE.

                  This is not a LibGDX issue. Gradle 5 is incompatible with Java 13. You either need to update Gradle (the wrapped version in your project) to Gradle 6 or later, or you need to use a lower version of the JRE.

                  要更新打包的 gradle,请转到项目中的 gradle/wrapper/gradle-wrapper-properties 并更新版本号.我正在使用 6.1.1.

                  To update the wrapped gradle, go to gradle/wrapper/gradle-wrapper-properties in your project and update the version number. I'm using 6.1.1.

                  distributionUrl=https://services.gradle.org/distributions/gradle-6.1.1-all.zip
                  

                  如果您有较旧的 LibGDX 项目,您可能需要修改 android 模块中的 build.gradle 文件以与 Gradle 6 兼容.您可以复制-粘贴以将 copyAndroidNatives 任务替换为 这里的那个.

                  If you have an older LibGDX project, you might have to modify the build.gradle file in the android module to be compatible with Gradle 6. You can copy-paste to replace the copyAndroidNatives task with the one here.

                  这篇关于语义分析期间的一般错误:不支持的类文件主要版本 57的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在 libgdx scene2d 上拖放演员? 下一篇:LibGdx 如何使用 OrthographicCamera 滚动?

                  相关文章

                  最新文章

                    1. <legend id='e8l4S'><style id='e8l4S'><dir id='e8l4S'><q id='e8l4S'></q></dir></style></legend>

                        <bdo id='e8l4S'></bdo><ul id='e8l4S'></ul>

                      <small id='e8l4S'></small><noframes id='e8l4S'>

                      <i id='e8l4S'><tr id='e8l4S'><dt id='e8l4S'><q id='e8l4S'><span id='e8l4S'><b id='e8l4S'><form id='e8l4S'><ins id='e8l4S'></ins><ul id='e8l4S'></ul><sub id='e8l4S'></sub></form><legend id='e8l4S'></legend><bdo id='e8l4S'><pre id='e8l4S'><center id='e8l4S'></center></pre></bdo></b><th id='e8l4S'></th></span></q></dt></tr></i><div id='e8l4S'><tfoot id='e8l4S'></tfoot><dl id='e8l4S'><fieldset id='e8l4S'></fieldset></dl></div>
                    2. <tfoot id='e8l4S'></tfoot>