2016-08-27 5 views
0

libgdx http://www.kilobolt.com/zombie-bird-tutorial-flappy-bird-remake.html を使用してフラッディーな鳥クローンを作成するこのチュートリアルに続き、アンドロイドとデスクトップバージョンはうまく動作しますが、htmlバージョンIトラブルに遭うGradlew: "userclass"タイプのソースコードがありません

私はlibgdxのドキュメントを読んでこの問題を議論したhttps://github.com/libgdx/libgdx/wiki/Reflectionですが、私が言及したことに従おうとするとまだエラーが出ます。私は似たような問題に関する他のほとんどの質問を読んだことがありますが、同じ問題を解決するためにソリューションを正しく実装したかどうかは完全にはわかりません。 https://drive.google.com/file/d/0B29c3qREvyioSjlFUVA2MzE3VTA/view?usp=sharing (この場合:

これは私が、私はここにzipファイルに私の全体のコードを投稿しますが長すぎるこのポストを作成する必要はありません、私は./gradlew html:dist

Configuration on demand is an incubating feature. 
:html:clean 
:html:addSource 
:core:compileJava UP-TO-DATE 
:core:processResources UP-TO-DATE 
:core:classes UP-TO-DATE 
:core:jar UP-TO-DATE 
:html:compileJava 
warning: [options] bootstrap class path not set in conjunction with -source 1.6 
1 warning 
:html:processResources UP-TO-DATE 
:html:compileGwt 
Compiling module com.gsoo.wirebird.GdxDefinition 
    Validating units: 
     [ERROR] Errors in 'file:/home/gavinsu/Documents/wireBird-master/core/src/com/gsoo/wirebird/wbGame.java' 
     [ERROR] Line 11: No source code is available for type com.gsoo.wbHelpers.AssetLoader; did you forget to inherit a required module? 
     [ERROR] Line 12: No source code is available for type com.gsoo.screens.SplashScreen; did you forget to inherit a required module? 
    [ERROR] Aborting compile due to errors in some input files 
:html:compileGwt FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':html:compileGwt'. 
> Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

BUILD FAILED 

Total time: 21.749 secs 

を実行したときに、私は現在、得るものです私はそれを編集します。)

私はこれを修正する方法は?

お時間をいただきありがとうございます。

答えて

0

申し訳ありませんが、翌朝、これを把握することができました。私は、* .gwt.xmlの他のクラスにソースパスを追加する必要がありました。 <source path="path/to/class" /> これは私のエラーを修正し、完全にコンパイルできるようにしました。

関連する問題