1

最近、この素晴らしいフレームワーク、つまり Libgdx について知りました。私はこのフレームワークにまったく慣れていないため、いくつかの問題が明らかです。リポジトリ全体を複製し、gdx-setup-ui.jar ファイルも実行しました。それは私に 4 つの基本的なスターター プロジェクトを与えます。(my-gdx-game、my-gdx-game-android、my-gdx-game-desktop、my-gdx-game-html) Android およびデスクトップ プロジェクトは正常に動作しますが、HTML5 プロジェクトを実行しようとすると、URLリンクをクリックした後、このエラーに直面しています。

[TRACE] [com.me.mygdxgame.GwtDefinition] - Finding entry point classes
[ERROR] [com.me.mygdxgame.GwtDefinition] - Errors in 'com/badlogic/gdx/backends/gwt/GwtApplication.java'
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 273: No source code is available for type com.badlogic.gdx.Net; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 393: No source code is available for type com.badlogic.gdx.utils.Clipboard; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Errors in 'com/badlogic/gdx/Application.java'
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 117: No source code is available for type com.badlogic.gdx.Net; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 159: No source code is available for type com.badlogic.gdx.utils.Clipboard; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Errors in 'com/badlogic/gdx/backends/gwt/GwtNet.java'
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 12: No source code is available for type com.badlogic.gdx.Net; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 14: No source code is available for type com.badlogic.gdx.Net.HttpResult; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 24: No source code is available for type com.badlogic.gdx.net.ServerSocket; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 24: No source code is available for type com.badlogic.gdx.Net.Protocol; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 24: No source code is available for type com.badlogic.gdx.net.ServerSocketHints; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 29: No source code is available for type com.badlogic.gdx.net.Socket; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 29: No source code is available for type com.badlogic.gdx.net.SocketHints; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Errors in 'com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/Array.java'
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 342: No source code is available for type com.badlogic.gdx.utils.StringBuilder; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Errors in 'com/badlogic/gdx/utils/ObjectMap.java'
[ERROR] [com.me.mygdxgame.GwtDefinition] - Line 468: No source code is available for type com.badlogic.gdx.utils.StringBuilder; did you forget to inherit a required module?
[ERROR] [com.me.mygdxgame.GwtDefinition] - Unable to find type 'com.me.mygdxgame.client.GwtLauncher'
[ERROR] [com.me.mygdxgame.GwtDefinition] - Hint: Previous compiler errors may have made this type unavailable
[ERROR] [com.me.mygdxgame.GwtDefinition] - Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[ERROR] [com.me.mygdxgame.GwtDefinition] - Failed to load module 'com.me.mygdxgame.GwtDefinition' from user agent 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1' at localhost:56812

現在、libgdx バージョン 0.9.7 を使用しています。私のOSはUbuntu 12、Eclipse Indigoです。私を助けてください。ありがとう。

4

2 に答える 2

0

私は同様の種類のエラーを抱えていました..Libgdx jarを最新のナイトリービルドバージョンに更新しただけで、問題は解決します。

于 2013-05-16T07:15:40.413 に答える
0

HTML プロジェクトの Java ビルド パスに追加された jar は何ですか。また、HTML プロジェクトに gdx-sources.jar が存在するかどうかも確認してください。また、Javaビルドパスでエクスポートタブに移動し、すべての依存関係がチェックされているかどうかを確認します。

于 2013-05-16T06:41:42.110 に答える