Reputation: 22018
I'm using the Eclipse ADT bundle v21. I'm trying to do what is described here.
When I create a new Android project it will automatically add android-support-v4.jar
to the dependencies and in the /libs
folder of the project.
When I now make ActionBarSherlock a dependency (add o the library list of Project>Properties>Android
), Eclipse says:
Jar mismatch! Fix your dependencies
because ABS has the same jar.
I managed once to just delete android-support-v4.jar
from the /libs
folder and everything went fine, but with every new project I create it doesnt work, Eclipse won't let me delete that jar:
An exception has been caught while processing the refactoring 'Delete'.
Reason: Problems encountered while deleting resources.
I havent been doing anything differently when creating the one project where the deletion of the jar from /libs
worked fine. Is there some workaround or am I doing something completely wrong?
Upvotes: 1
Views: 6859
Reputation: 1839
And if first step of Doctoror Drive's advice is not working for you, try re-run eclipse with administrator permissions. Took me like half an hour to get around this, so I'd like to share.
Upvotes: 0
Reputation: 17105
Now your project uses the latest support jar from ABS project, so no need to add it to any other projects that depend on ABS project.
Upvotes: 20
Reputation: 2735
probably you have different versions of support library in main project and actionbarsherlock. Copy support library from libs folder to actionbarsherlock/libs folder.
Upvotes: 1