gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 07:50:47 25 4
gpt4 key购买 nike

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

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