gpt4 book ai didi

html - 尝试将 libgdx 编译为 html,但无法清除 Assets

转载 作者:太空狗 更新时间:2023-10-29 14:20:49 24 4
gpt4 key购买 nike

在将我的 libgdx 项目编译为 html 时遇到问题。

看日志我觉得是问题所在;

Copying resources from ../android/assets to war/
C:\TomsProjects\MeshExplorerV2\html\..\android\assets
C:\TomsProjects\MeshExplorerV2\html\assets
[ERROR] Generator 'com.badlogic.gdx.backends.gwt.preloader.PreloaderBundleGenerator' threw an exception while rebinding 'com.badlogic.gdx.backends.gwt.preloader.PreloaderBundle'
java.lang.RuntimeException: Couldn't clean target path 'war\assets'

现在我觉得第二行有点奇怪;因为没有 html\assets 文件夹。assets 文件夹在 html\war\assets 中,就像最后一行提示的那样。

但是,在 html 中创建一个空的 assets 文件夹并手动删除 html\war\assets 的内容后,我仍然遇到同样的错误。

还有一个没有任何 Assets 文件夹的“html\webapp”目录。不确定是否应该有。

我尝试过从 eclipse 中清理/重建,也随机尝试过 Gradle>>全部刷新。

此外,Java 版本运行良好。

任何指针,谢谢:)

最佳答案

虽然没有完全揭示问题的路径,但我注意到只要我在两者之间重新启动 eclipse,它就会让我再次编译。这推断出一些文件锁定正在进行,可能是服务器仍在运行,尽管只是由我触发的 gwt 编译。不过,重新启动对我来说是一个很好的解决方法,因为它只需要一两分钟。

固定它:编译时关闭你的 FTP 程序 - 至少 CoreFTP 锁定了目录。现在每次都可以关闭它。

关于html - 尝试将 libgdx 编译为 html,但无法清除 Assets ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25515151/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com