<bdo id='ZclZ9'></bdo><ul id='ZclZ9'></ul>
<tfoot id='ZclZ9'></tfoot>

  • <legend id='ZclZ9'><style id='ZclZ9'><dir id='ZclZ9'><q id='ZclZ9'></q></dir></style></legend>

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

    2. <small id='ZclZ9'></small><noframes id='ZclZ9'>

        libGDX HTML5 部署异常

        时间:2023-05-28

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

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

        • <tfoot id='wBrlZ'></tfoot>
            • <bdo id='wBrlZ'></bdo><ul id='wBrlZ'></ul>
                <i id='wBrlZ'><tr id='wBrlZ'><dt id='wBrlZ'><q id='wBrlZ'><span id='wBrlZ'><b id='wBrlZ'><form id='wBrlZ'><ins id='wBrlZ'></ins><ul id='wBrlZ'></ul><sub id='wBrlZ'></sub></form><legend id='wBrlZ'></legend><bdo id='wBrlZ'><pre id='wBrlZ'><center id='wBrlZ'></center></pre></bdo></b><th id='wBrlZ'></th></span></q></dt></tr></i><div id='wBrlZ'><tfoot id='wBrlZ'></tfoot><dl id='wBrlZ'><fieldset id='wBrlZ'></fieldset></dl></div>
                  <tbody id='wBrlZ'></tbody>
                  本文介绍了libGDX HTML5 部署异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我正在尝试使用 GWT 编译 libGDX 项目(libgdx-project-html 右键单击​​ -> Google -> GWT 编译).

                  I am trying to compile the libGDX project using GWT (libgdx-project-html right click -> Google -> GWT Compile).

                  编译时没有错误,除了

                  com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Targetjava.lang.StringIndexOutOfBoundsException

                  com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Target java.lang.StringIndexOutOfBoundsException

                  但由于我没有使用此工具,所以应该没有问题.

                  but since I'm not using this util should not be a problem.

                  编译说成功后,我运行本地托管站点.

                  After the compilation says that it was successful, I ran the local hosted site.

                  LibGDX 标志和加载栏出现(直到这里还不错),当它们完成后,我得到一个黑色的游戏屏幕和一个无限的框

                  LibGDX logo and loading bar come up (fine until here), and when they are done, I get a black game screen and a box below it with unlimited

                  GwtApplication:异常:(TypeError):无法调用方法null (TypeError) 的nullMethod":无法调用方法nullMethod"的空

                  GwtApplication: exception: (TypeError) : Cannot call method 'nullMethod' of null (TypeError) : Cannot call method 'nullMethod' of null

                  消息行.

                  在控制台中不断重复以下消息:

                  In the console the following message is repeated continuously:

                  未捕获的 java.lang.RuntimeException:com.google.gwt.core.client.JavaScriptException: (TypeError) : 不能调用null的方法'nullMethod'(匿名函数)597957B2399D3903739C615799AE1A15.cache.html:11899

                  Uncaught java.lang.RuntimeException: com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot call method 'nullMethod' of null (anonymous function) 597957B2399D3903739C615799AE1A15.cache.html:11899

                  这个项目基本上就是libGDX的标志,应该出现并填满游戏屏幕(默认),并且没有修改任何代码.

                  The project basically is nothing but the logo of libGDX that should come up and fill the game screen (the default one) and no code has been modified.

                  一些补充说明:

                  桌面和 Android 可以完美地编译和工作.

                  Desktop and Android compile and work flawlessly.

                  在出现该错误消息之前,控制台显示 SoundManager 2 已加载(确定).

                  Console says SoundManager 2 loaded (OK) before that error message comes up.

                  GWT 编译时设置了严格标志,并且所有内容都编译没有错误.

                  Strict flag is set when GWT compiling and everything are compiled with no errors.

                  推荐答案

                  适用于遇到相同问题或任何其他类似/奇怪异常的任何人.

                  For anyone having the same problem or any other similar/weird exceptions.

                  确保通过添加设置严格标志

                  Make sure that strict flag is set by adding

                  -严格

                  在编译参数中,最重要的是,您正在使用

                  in the compiling arguments and most importantly, you are using

                  GL20

                  因为 WebGL 基于 GL20,不支持 GL10.

                  as WebGL is based on GL20 and doesn't support GL10.

                  这篇关于libGDX HTML5 部署异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:CasperJS/PhantomJS 分段错误 下一篇:传单不连贯地绘制瓷砖

                  相关文章

                  最新文章

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

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

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