---
title: "The hierarchy of the type XXXX is inconsistent"
author: "ronry"
date: "2010-10-22T12:24:45Z"
tags: []
categories: ["编程语言"]
slug: "the-hierarchy-of-the-type-xxxx-is-inconsistent"
draft: false
lastmod: "2010-10-22T12:24:45Z"
id: 791376
url: "https://ronry.iteye.com/blog/791376"
---

These errors happend because some  [interface](http://www.velocityreviews.com/forums/t149067-the-hierarchy-of-the-type-is-inconsistent.html) /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](http://www.velocityreviews.com/forums/t149067-the-hierarchy-of-the-type-is-inconsistent.html)

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](http://www.velocityreviews.com/forums/t149067-the-hierarchy-of-the-type-is-inconsistent.html)   Build Path (if you are using eclipse).