1
我第一次嘗試使用HTML版本的libgdx項目,並且在編譯項目時遇到問題。 compileGwt任務因此失敗:Libgdx HTML項目沒有編譯(沒有源代碼可用...)
[ERROR] Line 21: No source code is available for type de.tomgrill.gdxfacebook.core.GDXFacebook; did you forget to inherit a required module?
[ERROR] Line 30: No source code is available for type io.netty.channel. socket.SocketChannel; did you forget to inherit a required module?
有各種類的相同類型的錯誤加載更多。我的問題是:是否有可能在項目的HTML版本中使用Netty和gdx-facebook擴展?如果是這樣,這怎麼辦?請注意,除了外行的「將java轉換爲javascript代碼」之外,我對GWT一無所知。欲瞭解更多信息,請詢問。 感謝
編輯:從HTML項目附加.iml文件
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":html" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="portablefun" external.system.module.version="1.1" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
<option name="GRADLE_PROJECT_PATH" value=":html" />
</configuration>
</facet>
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
<option name="BUILDABLE" value="true" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/build/classes/main" />
<output-test url="file://$MODULE_DIR$/build/classes/test" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="core" exported="" />
<orderEntry type="library" exported="" name="gdx-backend-gwt-1.9.3" level="project" />
<orderEntry type="library" exported="" name="gdx-backend-gwt-1.9.3-sources" level="project" />
<orderEntry type="library" exported="" name="gdx-1.9.3-sources" level="project" />
<orderEntry type="library" exported="" name="gdx-1.9.3" level="project" />
<orderEntry type="library" exported="" name="gdx-box2d-1.9.3-sources" level="project" />
<orderEntry type="library" exported="" name="gdx-box2d-gwt-1.9.3-sources" level="project" />
<orderEntry type="library" exported="" name="json-20160212" level="project" />
<orderEntry type="library" exported="" name="gwt-user-2.6.1" level="project" />
<orderEntry type="library" exported="" name="gdx-box2d-1.9.3" level="project" />
<orderEntry type="library" exported="" name="validation-api-1.0.0.GA" level="project" />
<orderEntry type="library" exported="" name="validation-api-1.0.0.GA-sources" level="project" />
<orderEntry type="library" exported="" scope="RUNTIME" name="gwt-servlet-2.6.0" level="project" />
</component>
</module>
以下是完整的.gwt.xml我現在有,我這裏想補充它到底?: <!DOCTYPE module PUBLIC」 - // Google Inc. //DTD Google Web Toolkit trunk // EN「」http://google-web-toolkit.googlecode.com/svn/trunk/distro-源極/核心/ SRC/GWT-module.dtd 「> \t <源路徑=」 COM/maillardcodes/portablefun」 /> –
WonderfulWorld
不要緊在其中添加它只要長它是內部 –
錯誤:加載繼承的mod ule'src.de.tomgrill.gdxfacebook.GdxFacebookCore' [錯誤]無法在您的類路徑中找到'src/de/tomgrill/gdxfacebook/GdxFacebookCore.gwt.xml';可能是拼寫錯誤,或者您可能忘記爲源代碼包含類路徑條目? [錯誤]第5行:處理元素'繼承'時出現意外異常 com.google.gwt.core.ext.UnableToCompleteException :(請參閱之前的日誌條目) – WonderfulWorld