Search code examples
androidactionbarsherlock

After importing ActionbarSherlock, the original project has a red exclamation mark


I downloaded the ActionbarSherlock library, and tried to use it as a library in a different project. As soon as I imported the ActionbarSherlock library, my original project got a red exclamation mark next to it and I got the error that I have dependency errors (actionbarsherlock/bin missing).

This is the error:

[2013-06-03 15:27:05 - Live Marketing Help] Path: C:\Users\Alex\workspace\actionbarsherlock\libs\android-support-v4.jar
[2013-06-03 15:27:05 - Live Marketing Help]     Length: 271754
[2013-06-03 15:27:05 - Live Marketing Help]     SHA-1: 53307dc2bd2b69fd5533458ee11885f55807de4b
[2013-06-03 15:27:05 - Live Marketing Help] Jar mismatch! Fix your dependencies

Would anyone know how to fix this? Thanks, Alex


Solution

  • The key is the Jar mismatch! Fix your dependencies message. In this case, it means it found 2 different versions (check is based on SHA-1) of android-support-v4.jar in the dependency list: the one in your project and the other in the `\libs' folder in ActionbarSherlock.

    You have two possible solutions:

    • The simplest is to keep ActionbarSherlock's support library and delete the one in your project.
    • The "stupid" solution is to have exactly the same JAR file in both projects.