Question

I first imported the appcompact_v7 project into eclipse by copying that to workspace. Then I added it as a external jar in my original project and referenced the appcompact_v7 project.

Then I imported :

import android.support.v7.app.ActionBarActivity; in my original project. But it still says configure build path. And it gives this error:

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

Please help me with this.

Thanks in advance

Was it helpful?

Solution

To add appcompat follow these steps:

  1. Import appcompat project from File>Import
    1. Select Existing Android Code Into Workspace
    2. Now in your project goto Properties > Android
    3. There click Add Button and select the appcompat project

This is the valid method of referencing external projects in your project and you should avoid other methods as much as possible.

This would also be helpful to you: If I use new " V7 Appcompat library ", do I still need " V4 Support Library " for a minimum SDK = 7?

Good Luck!

UPDATE: Since you are asking about jar dependencies mismatch, you can see where these jar files are in console. You can copy one jar and replace in each location. However this is not the recommended way. You can follow this link and do as suggested: https://stackoverflow.com/a/18039006/2741586

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top