java - 导入libgdx项目到eclipse时出错

标签 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

有人知道我错过了什么吗?

最佳答案

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

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

  • 选择 Android 并确保 检查Android版本(我之前已经导入过项目 是为我尚未下载的 Android 版本设置的 的开发人员工具,因此在我执行此操作之前它们不会编译)。
  • 选择 Java 构建路径,然后选择“订购和导出”选项卡。确保 一切都经过检查。
  • 选择 Java 编译器并确保 使用 Java 1.6 进行编译。

关于java - 导入libgdx项目到eclipse时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19269318/

相关文章:

java - 我需要帮助在 selenium Java 中查找 Web 元素

java - JFreeChart - CategoryAxis 步骤

java - 如何在渲染 box2Dlights 时调整视口(viewport)?

java - Libgdx,使用 Shader 的 Alpha 文本不起作用

fonts - libgdx如何翻转BitmapFont?

java - Thread.sleep 和重画

java - 在可观察链中应用调度器两次(使用 compose)

java - Box2D - 不能破坏多个固定装置

java - 如何将 Pixmap/Texture 加载到 AssetManager 中?

java - 将特定函数调用记录到特定日志