The hierarchy of the type activity is inconsistent when extending ActionBarActivity

Seifolahi picture Seifolahi · Jul 25, 2013 · Viewed 13k times · Source

Hi I've got new v7 support library with appcompat actionbar and when I want to extend from ActionBarActivity as documented here, eclipse show me this error

The hierarchy of the type testActivity is inconsistent

and when I move my courser on ActionBarActivity class it says

The type android.support.v4.app.TaskStackBuilder$SupportParentable cannot be resolved. It is indirectly referenced from required .class files

now how can I Solve this issue?

Answer

Mohsen Navabi picture Mohsen Navabi · Jul 25, 2013

you should use new support v4 library that just has been released in sdk v18