The type org.eclipse.core.commands.common.EventManager cannot be resolved. It is indirectly referenced from required .class files
at the same time.
These errors happend because some interface /class in the hierarchy cannot be resolve.
For example: the error is occur in your class - class x, x inherits y, and in turn, y inherits z. However, the compiler cannot resolve z (in above error is EventManager), because z is belong to a library that is not included.
Therefore, you have to add package containing z to the classpath/ or project's Java Build Path (if you are using eclipse).
如果你写的类A 继承了 B 而B 继承 C,如果接口c或类C不在你所引的jar 包中,就报此信息,导入jar 包即可
本文针对Eclipse中出现的the hierarchy of the type is inconsistent错误进行了详细的解释,并提供了具体的解决方案,即通过添加缺失的类库到项目的Java构建路径中来解决这一问题。
1701

被折叠的 条评论
为什么被折叠?



