在Eclipse中遇到The type XXX cannot be resolved. It is indirectly referenced from required .class files错误.....,查找的解决办法以下:
一:
It is indirectly referenced from required .class filejava
缘由:你正要使用的类调用了另外一个类,而这个类又调用了其余类,这种关系可能会有好多层。而在这个调用的过程当中,某个类所在的包的缺失就会形成以上那个错误。ui
解决方法:导入缺失的包this
二:
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 filesspa
出现以上问题的缘由是你安装了多个版本的jre或者jdk。ip
解决方法:手动修改项目引入的jdk版本it