Libgdx 设置 UI 在新 GWT 项目中出现 2 个意外错误 [英] Libgdx setup UI gives 2 unexpected errors in new GWT project

查看:34
本文介绍了Libgdx 设置 UI 在新 GWT 项目中出现 2 个意外错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经运行了设置 ui,但是,我在 -html 项目中遇到了两个与教程中描述的错误不同的错误:libgdx 教程

教程错误说明如下(这是我没有看到的错误):

<块引用>要修复HTML5/GWT项目的错误,请转到问题"视图,右键单击错误消息WEB-INF/lib目录中缺少GWT SDK JAR gwt-servlet.jar"并选择快速修复"".单击完成".

我遇到的错误是:

<块引用>该项目未构建,因为其构建路径不完整.找不到 com.google.gwt.core.client.EntryPoint 的类文件.修复构建路径然后尝试构建这个项目......

<块引用>无法解析 com.google.gwt.core.client.EntryPoint 类型.它是从所需的 .class 文件间接引用的

无论如何我可以解决这个问题吗?我刚刚更新了我的 eclipse,我还下载了版本 18 ADT,Android SDK 工具的修订版 19,以及 Android SDK 平台工具的修订版 11.

解决方案

几周前我遇到了同样的问题,并通过安装 GWT SDK.

I have run the setup ui, however, I get two different errors in the -html project than what is described in the tutorial: libgdx tutorial

The tutorial error stated is as follows (which is an error I do not see):

To fix the error of the HTML5/GWT project, go to the "Problems" view, right click the error message "The GWT SDK JAR gwt-servlet.jar is missing in the WEB-INF/lib directory" and select "Quick Fix". Click "Finish".

The errors I have are:

The project was not built since its build path is incomplete. Cannot find the class file for com.google.gwt.core.client.EntryPoint. Fix the build path then try building this project ...

The type com.google.gwt.core.client.EntryPoint cannot be resolved. It is indirectly referenced from required .class files

Is there anyway i can fix this? I just updated my eclipse, I also downloaded Version 18 ADT, revision 19 for Android SDK Tools, and revision 11 for Android SDK Platform-tools.

解决方案

I had the same problem a couple of weeks ago and got around it by installing the GWT SDK.

这篇关于Libgdx 设置 UI 在新 GWT 项目中出现 2 个意外错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆