Code2care : TechZone Apps & Tutorials

Android - Found 2 versions of android-support-v4.jar. Fix your dependencies.

[2014-10-13 12:10:45 - androidApp] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-10-13 12:10:45 - androidApp] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-10-13 12:10:45 - androidApp] All versions of the libraries must be the same at this time.
[2014-10-13 12:10:45 - androidApp] Versions found are:
[2014-10-13 12:10:45 - androidApp] Path: /Users/admin/Downloads/JakeWharton-ActionBarSherlock-5a15d92/actionbarsherlock/libs/android-support-v4.jar
[2014-10-13 12:10:45 - androidApp] Length: 271754
[2014-10-13 12:10:45 - androidApp] SHA-1: 53307dc2bd2b69fd5533458ee11885f55807de4b
[2014-10-13 12:10:45 - androidApp] Path: /Users/admin/Android/Projs/androidApp/libs/android-support-v4.jar
[2014-10-13 12:10:45 - androidApp] Length: 621451
[2014-10-13 12:10:45 - androidApp] SHA-1: 5896b0a4e377ac4242eb2bc785220c1c4fc052f4
[2014-10-13 12:10:45 - androidApp] Jar mismatch! Fix your dependencies

Why this error message ?

    Its seems like you have two or more android-support-v4.jar dependency for your Android project and the versions (SHA-1s) are different causing a conflict.

    Example : You may be using third party libraries for your android project like Facebook SDK Lib, ActionBarsherlock or Game Engines, and they may be having different versions of android-support-v4.jar than that exists in project lib folder.

    So the problem is in of Android Jar mismatch!

    Found 2 versions of android-support-v4-jar in the dependency list

How to resolve this issue ?

    All the versions of android-support-v4.jar must be the same for a project so, just remove all other android-support-v4.jar that exists in the linked libraries to your project, and copy the one that exists in your project lib folder to the linked libraries (you can get the Path for the jar files in the error message that that you see in the Console).

    Clean and build your project and you will see that the error message is gone.


Posts related to android.

1. Share image and text Twitter using your Android Application Programatically

2. The Android Virtual Device 'myEmulator' is currently running an emulator and cannot be deleted.

3. Make Android View Scrollable both Horizontally and Vertically

4. Can we move apps like WhatsApp, Facebook to external MicroSD card

5. Parsing Data for android-21 failed unsupported major.minor version 51.0

6. Android : Prevent App for rotation landscape or portrait

7. ADT quit unexpectedly error on Mac OSX Android Eclipse SDK

8. Android-Failed to install apk on device EOF Timeout Error

9. How to change Android EditText Cursor Color

10. JavaDocs for Android SDK Eclipse IDE

11. Two Buttons next to each other in Android Layout

12. Change Title text for Android Activity using java code

13. How to add Newline to text in Android TextView

14. Android : Unable to load VM from snapshot : Mac OS X Error

15. INVALID FILE NAME: MUST CONTAIN ONLY [a-z0-9_.] Android Eclipse Error

16. Hide Tittle bar and Navigation bar from android activity

17. appcompat_v7 errors after updates to API level 21 Material Theme

18. How to Copy Text to Android Clipboard Programatically ClipboardManager (Both Old and New SDK)

19. [Solution] Running Android Lint has encountered a problem NullPointerException Error

20. Remove Trailing zeros BigDecimal Java


Popular tags
x 175
x 29
x 20
x 14
x 14
x 14
x 13
x 11

1000+ C Programs     PHP Tutorial     JSON Tutorial     Swift Tutorial     India Pinocdes     About Us     Privacy Policy

Code2care © 2012-17