所以我有一个libgdx项目在桌面上执行得非常好,但是我在尝试将它变成Web应用程序时遇到了很多麻烦.
我现在遇到的问题是,它看起来不像我正在导入我的gdx后端jar.这是我的xml文件的样子:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
<module rename-to='trmhtml5'>
<inherits name='com.badlogic.gdx.backends.gdx_backends_gwt' />
<inherits name='TeamRogueMiners' />
<!-- Specify the app entry point class. -->
<entry-point class='com.quazandwally.teamrogueminers.client.GwtLauncher'/>
<set-configuration-property name="gdx.assetpath" value="../Android/assets" />
</module>
Run Code Online (Sandbox Code Playgroud)
这是我得到的错误:
[TRACE] [trmhtml5] - Finding entry point classes
[ERROR] [trmhtml5] - Errors in 'file:/D:/Dev%20Dropbox/Dropbox/Eclipse/workspace/TRMHTML5/src/com/quazandwally/teamrogueminers/client/GwtLauncher.java'
[ERROR] [trmhtml5] - Line 11: No source code is available for type com.badlogic.gdx.backends.gwt.GwtApplication; did you forget to inherit a required module?
[ERROR] [trmhtml5] - Line 14: No source …Run Code Online (Sandbox Code Playgroud)