Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Help on my own app!

I'm making my own app and I keep getting this in the console log. Does anyone know how to fix this?

[2014-12-02 12:54:37 - AlarmClock] Found 2 versions of android-support-v4.jar in the dependency list, [2014-12-02 12:54:37 - AlarmClock] but not all the versions are identical (check is based on SHA-1 only at this time). [2014-12-02 12:54:37 - AlarmClock] All versions of the libraries must be the same at this time. [2014-12-02 12:54:37 - AlarmClock] Versions found are: [2014-12-02 12:54:37 - AlarmClock] Path: C:\Users\User\workspace_3\AlarmClock\libs\android-support-v4.jar [2014-12-02 12:54:37 - AlarmClock] Length: 995386 [2014-12-02 12:54:37 - AlarmClock] SHA-1: a13f8fe2c278737e2f0b6fcf00f6b2ae4034aacf [2014-12-02 12:54:37 - AlarmClock] Path: C:\Users\User\workspace_3\appcompat_v7\libs\android-support-v4.jar [2014-12-02 12:54:37 - AlarmClock] Length: 758727 [2014-12-02 12:54:37 - AlarmClock] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507 [2014-12-02 12:54:37 - AlarmClock] Jar mismatch! Fix your dependencies [2014-12-02 12:54:37 - AlarmClock] Found 2 versions of android-support-v4.jar in the dependency list, [2014-12-02 12:54:37 - AlarmClock] but not all the versions are identical (check is based on SHA-1 only at this time). [2014-12-02 12:54:37 - AlarmClock] All versions of the libraries must be the same at this time. [2014-12-02 12:54:37 - AlarmClock] Versions found are: [2014-12-02 12:54:37 - AlarmClock] Path: C:\Users\User\workspace_3\AlarmClock\libs\android-support-v4.jar [2014-12-02 12:54:37 - AlarmClock] Length: 995386 [2014-12-02 12:54:37 - AlarmClock] SHA-1: a13f8fe2c278737e2f0b6fcf00f6b2ae4034aacf [2014-12-02 12:54:37 - AlarmClock] Path: C:\Users\User\workspace_3\appcompat_v7\libs\android-support-v4.jar [2014-12-02 12:54:37 - AlarmClock] Length: 758727 [2014-12-02 12:54:37 - AlarmClock] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507 [2014-12-02 12:54:37 - AlarmClock] Jar mismatch! Fix your dependencies [2014-12-02 12:55:27 - AlarmClock] Found 2 versions of android-support-v4.jar in the dependency list, [2014-12-02 12:55:27 - AlarmClock] but not all the versions are identical (check is based on SHA-1 only at this time). [2014-12-02 12:55:27 - AlarmClock] All versions of the libraries must be the same at this time. [2014-12-02 12:55:27 - AlarmClock] Versions found are: [2014-12-02 12:55:27 - AlarmClock] Path: C:\Users\User\workspace_3\AlarmClock\libs\android-support-v4.jar [2014-12-02 12:55:27 - AlarmClock] Length: 995386 [2014-12-02 12:55:27 - AlarmClock] SHA-1: a13f8fe2c278737e2f0b6fcf00f6b2ae4034aacf [2014-12-02 12:55:27 - AlarmClock] Path: C:\Users\User\workspace_3\appcompat_v7\libs\android-support-v4.jar [2014-12-02 12:55:27 - AlarmClock] Length: 758727 [2014-12-02 12:55:27 - AlarmClock] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507 [2014-12-02 12:55:27 - AlarmClock] Jar mismatch! Fix your dependencies [2014-12-02 12:56:34 - AlarmClock] C:\Users\User\workspace_3\AlarmClock\res\layout\activity_details.xml:206: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/view_touch_selector'). [2014-12-02 12:56:34 - AlarmClock] [2014-12-02 12:56:42 - AlarmClock] Found 2 versions of android-support-v4.jar in the dependency list, [2014-12-02 12:56:42 - AlarmClock] but not all the versions are identical (check is based on SHA-1 only at this time). [2014-12-02 12:56:42 - AlarmClock] All versions of the libraries must be the same at this time. [2014-12-02 12:56:42 - AlarmClock] Versions found are: [2014-12-02 12:56:42 - AlarmClock] Path: C:\Users\User\workspace_3\AlarmClock\libs\android-support-v4.jar [2014-12-02 12:56:42 - AlarmClock] Length: 995386 [2014-12-02 12:56:42 - AlarmClock] SHA-1: a13f8fe2c278737e2f0b6fcf00f6b2ae4034aacf [2014-12-02 12:56:42 - AlarmClock] Path: C:\Users\User\workspace_3\appcompat_v7\libs\android-support-v4.jar [2014-12-02 12:56:42 - AlarmClock] Length: 758727 [2014-12-02 12:56:42 - AlarmClock] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507 [2014-12-02 12:56:42 - AlarmClock] Jar mismatch! Fix your dependencies [2014-12-02 12:56:46 - AlarmClock] C:\Users\User\workspace_3\AlarmClock\res\layout\activity_details.xml:206: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/view_touch_selector'). [2014-12-02 12:56:46 - AlarmClock]

1 Answer

From StackOverflow: Delete android-support-v4.jar from library and project. Then go in <sdk>/extras/android/support/samples/Support4Demos/ and copy android-support-v4.jar and paste in libs folder of both http://stackoverflow.com/questions/21450086/found-2-versions-of-android-support-v4-jar-in-the-dependency-list-appcompat-in-a

Or

Any ideas on how to resolve this?

Delete one.

I've been playing with the build path to no success.

Step #1: Undo all that. If you are messing with the build path, on R16 or higher version of the ADT plugin for Eclipse, you're doing it wrong.

Step #2: Pick one of those two versions of the JAR, or pick the one from the "extras" area of your SDK installation.

Step #3: Put the right JAR in App Library.

Step #4: Delete the one from App Free, since it will pick up that JAR from App Library.

You are welcome to instead have the same actual JAR file in both spots (App Free and App Library), though that just takes up extra space for no reason.

http://stackoverflow.com/questions/12045568/jar-mismatch-found-2-versions-of-android-support-v4-jar-in-the-dependency-list