9

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?

Seifolahi
  • 919
  • 3
  • 11
  • 26

2 Answers2

20

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

Mohsen Navabi
  • 686
  • 1
  • 6
  • 15
  • 1
    problems solved thank you. I should have imported it as a Eclipse library – Seifolahi Jul 25 '13 at 07:54
  • actually v4 should not be a part of the main project, but a part of the v7 user library – Amir Uval Oct 08 '13 at 10:18
  • I was working on Unity development and had the same error. The problem for me was due to min SDK version. Unity requires minimum 2.3.1 and I set up the whole thing for 1.6! – Sri Mar 20 '14 at 16:22
4

I run in exactly the same issue and find thanks to tyczj a better solution, I think. If you have correctly setup the v7 library: http://developer.android.com/tools/support-library/setup.html#add-library You should NOT need to add again the v4 since it is included in v7 folder.

(Since you add the new v4 to solve your problem, I suppose you did not really use the one from v7 because in the v7 it IS the new one)

My post: If I use new " V7 Appcompat library ", do I still need " V4 Support Library " for a minimum SDK = 7?

Community
  • 1
  • 1
Poutrathor
  • 1,990
  • 2
  • 20
  • 44