将libgdx项目导入eclipse时出错

时间:2013-10-09 10:21:19

标签: java libgdx

我遵循了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

有谁知道我错过了什么?

1 个答案:

答案 0 :(得分:7)

尝试这些,希望他们会帮助。

右键单击该项目,然后转到“属性”。在属性窗口中:

  • 选择Android并确保一个 检查Android的版本(之前我已经导入了项目 设置为我没有下载的Android版本 开发人员工具,所以在我这样做之前他们不会编译。)
  • 选择Java Build Path,然后选择Order and Export选项卡。确保 一切都经过检查
  • 选择Java Compiler并确保您 正在使用Java 1.6进行编译。