求解惑Cannot find the class file for java.lang.Object.

小唐人 小唐人 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我导入一个项目,出现这个问题:
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。
网上解决方法:
step1:点击project----->propertys------>Java Build Path -----> Libraries---->Add Libraries----->JRE System Library------>选第一个workspace default jre-------->finish,
step2:点击project----->clean------>clean all projects -----> OK
但是用完出现如下错误:
Activity cannot be resolved to a variable
AdapterView cannot be resolved to a type
AlertDialog cannot be resolved to a type
Align cannot be resolved to a variable
android cannot be resolved
ArrayAdapter cannot be resolved to a type。。。。重复中
求大神解惑。
...全文

相关推荐

java常见的语法错误

1.变量可能未初始化 错误提示:Abc.java:9: variable i might not have been initialized System.out.println(i); 中文说明:变量i可能没有赋值就使用了。 例子说明: int i; System.out.println(i); 2.变量重复定义 错误提示:Abc.java:9: i is already defined in main(java.lang.String[]) int i = 2; 中文说明:变量重复定义了 例子说明: int i = 1; int i = 2; 3. 找不到符号: Test6.java:26: cannot find symbol symbol : variable j location: class Test6 if(j < 0) { 4. 找不到类的错误 Main.java:4: cannot find symbol symbol : class T1 location: class Main T1 a = new T1();

ge408891001

NDK_C调用java demo

NDK中使用C代码调用java中的方法事例demo

唯鹿

JDK1.6安装过程详解

你是否为安装JDK而烦恼呢?下面就详细阐述JDK1.6安装过程,告诉朋友们怎么配置环境变量

zyyn1022

java打包jar方案的优缺点分析及解决方案

java打包jar方案的优缺点分析及解决方案,介绍3种打jar包的方法: 1.用Eclipse插件fat.jar对程序打包。 2.直接用Myeclipse的Export导出成jar包 3. 直接用Myeclipse的Export中runable jar file导出成jar包(最好就用)

ChenAllen1025

Java语言与面向对象程序设计题解及实验指导实验电子版

Java语言与面向对象程序设计题解及实验指导包括Java语言与面向对象程序设计(第2版)的习题答案和14个实验,但是实验部分没有答案,最近整理出了电子版,还缺少实验部分答案。

myfang123
评论
收藏 已收藏
分享
返回顶部
小唐人
Java SE 62,620 成员 307,251 内容