gpt4 book ai didi

android - 将android项目导入eclipse时出错

转载 作者:搜寻专家 更新时间:2023-11-01 07:38:23 25 4
gpt4 key购买 nike

目前,我在尝试将带有 java 基本培训练习文件的 lynda.com android 应用程序开发导入到 eclipse 时遇到困难。我不断收到这样的 Java 错误。有人可以帮我解决这个问题吗?我目前正在使用

  • Android SDK r12
  • 用于 eclipse 的 ADT 12 插件
  • JDK 7x64
  • JRE 7x64
  • 面向 Java 开发人员的 LEclipse IDE 3.7 indigo

这里是错误:

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.

The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

(下面是原始屏幕截图) enter image description here

最佳答案

这有点晚了,但是在我自己努力解决这个问题之后,我找到了解决问题的方法。

  1. 右键单击项目 --> 构建路径 --> 配置构建路径...
  2. 在“来源”选项卡中,选择项目,例如。 'myProject/src' --> 单击确定。
  3. 右键单击项目 --> Android 工具 --> 修复项目属性

应该可以了!

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

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