android Multiple markers at this line - The type java.lang.Class cannot be resolved. It is indirectl
来源:互联网 发布:找字体软件 编辑:程序博客网 时间:2024/06/06 08:53
转自:http://jayzhou215.blog.163.com/blog/static/132713533201243010328723/
自己的工程,早晨打开时看到满屏幕的错误,第一行就开始有错!Multiple markers at this line - The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files - The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files - The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
提示如上的错误,并且注意到project中没有了android2.2的jar包了。package com.jay.test.activity;
解决办法:在package explorer中右键自己的project名,右键Property,左边一列中选android,project build target中显示已经选中了android2.3.1,重新选择一个别的,比如android4.0.3,确认后再重新修改回android2.3.1,打开菜单栏的project,clean,选中自己的project名字,确定,清理会删除gen文件夹,然后自动重新build project(右下角有提示),完毕重新生成了gen文件夹,问题解决。
eclipse中有时会有这样莫名其妙的错误,自己碰到很快就操作完毕了,记录下来,给第一次碰到类似问题的新手们一个参考。
今天发现另一种情况,eclipse新导入高焕堂老师的课程源码,源码中只有src,bin,res,AndroidManifest.xml,第一个报错是在console控制台上显示的没有project,properties的错误,从别的项目中拷贝该文件到目录下,选择android2.3.1,仍然报如标题的错误,选择config build path中java build path,Order and Export将android2.3.1按UP置顶,android dependencies放在android2.3.1下面(这里android2.3.1根据你自己的项目所用的SDK选择相应的),再下面是src和gen然后clean,OK,错误解决
- android Multiple markers at this line - The type java.lang.Class cannot be resolved. It is indirectl
- android Multiple markers at this line - The type java.lang.Class cannot be resolved. It is indirectl
- android Multiple markers at this line - The type java.lang.Class cannot be resolved. It is indirectl
- Multiple markers at this line - The type java.lang.String cannot be resolved.
- Multiple markers at this line - The type org.xmlpull.v1.XmlPullParser cannot be resolved. It is ind
- MyEclipse报错:Multiple markers at this line - The type java.io.ObjectInputStream cannot be resolved.
- Multiple markers at this line - The type java.lang.Object cannot be resolve
- Multiple markers at this line - The import javax.servlet cannot be resolved
- Java The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class
- 运算符的优先级
- 传华为接洽投行欲赴美上市
- cocos2d-x: 粒子系统 [2.0.2]
- 国外大牛们一年发7点以上SCI的诀窍[转]
- 日期格式转换
- android Multiple markers at this line - The type java.lang.Class cannot be resolved. It is indirectl
- 多个构造器参数使用构造器代替 取自effective java
- 全排列函数 next_permutation && prev-permutation
- 运行加载.ui文件
- 为什么美国互联网公司在中国市场都失败了?
- 网页右下角弹出提示框
- (转)SQL 优化原则
- eclipse装反编译插件
- 八位陌生人接力奔跑将喝农药女孩送到医院