2

我遵循了 libgdx 项目设置,当我将项目导入 Eclipse 时,我遇到了这些错误,并且没有任何运气来寻找修复程序。

The type java.lang.Object cannot be resolved. It is indirectly referenced from required                 .class files    MainActivity.java   /Spellcast-android/src/en/fred/spellcast    line 1  Java Problem
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files    RobovmLauncher.java /Spellcast-robovm/src/en/fred/spellcast line 1  Java Problem
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project    Spellcast-robovm        Unknown Java Problem
The type com.google.gwt.core.client.EntryPoint cannot be resolved. It is indirectly referenced from required .class files   GwtLauncher.java    /Spellcast-html/src/en/fred/spellcast/client    line 8  Java Problem
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   Spellcast-html      Unknown Java Problem
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project    Spellcast-android       Unknown Java Problem

有谁知道我错过了什么?

4

1 回答 1

7

试试这些,希望它们会有所帮助。

右键单击项目并转到属性。在属性窗口中:

  • 选择 Android 并确保选中了一个 Android 版本(我之前导入的项目是为我没有下载开发者工具的 Android 版本设置的,所以在我这样做之前它们不会编译)。
  • 选择 Java Build Path,然后选择 Order and Export 选项卡。确保检查所有内容。
  • 选择 Java Compiler 并确保使用 Java 1.6 进行编译。
于 2013-10-09T10:41:02.577 回答