在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