Jar Mismatch Found 2 Versions of Android-Support-V4.Jar in the Dependency List

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

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.

Jar mismatch error ! fix your dependencies

Just delete android-support-v4.jar from your project's libs folder.

Then copy adt-bundle-windows-x86-20131030\sdk\extras\android\support\v4\android-support-v4.jar file and paste it to your libs folder. Just clean and build your project !!

YOU HAVE TO DO THIS TASK FOR BOTH appcompat_v7 AND Megavenues.

No need to set Build Path.

This works for me.

I hop it will useful for you.
Thank you.

android-support-v4.jar dependency error

You just need to :

  1. Right Click the project myNewProject
  2. Go To "Android Tools" > "Add Support Library"
  3. Approve the permissions and let it update the library
  4. Repeat this process for the project appcompat_v7

The Android Support Library will then be in sync (:

jar mismatch, fix your dependencies

This issue arises when you have different versions of v4 library inside of your other libraries that you are using in your app, the simplest solution is to copy the v4 library from one of them and then put it in all of your libraries and don't forget to delete the old ones first

How to fix this jar mismatch and found 2 versions of android-support-v4.jar error?

Put the latest android-support-v4.jar in both the application and in the Facebook sdk.

JAR Mismatach ! Fix your dependency error while using two libs

Your android-support-v4.jar in the application and in the ActionBarSherlock app are of different versions. Just delete that jar from your app and copy the new one from ActionBarSherlock library project to make the version same.

Jar mismatch! Fix your dependencies

Use a Library Project just for the Support Library

As of ADT 22, using Eclipse Juno

I don't think any of the above are really the best answers. I also don't think it is recommended to use the external jar function in Eclipse anymore (AFAIK).

Rather, what worked for me is to create a separate empty library project.

Then use Android tools > Add Support Library to get the latest version you need or want.

Then remove the support lib jar from all other projects.

Finally, for every project that requires it, add a reference to your new Library project

(project properties) > Android > (Library box) > Add...

Then all your projects will have a single source to use and update the support library. This also makes javadocs easier to get working.

For info on how to setup the javadocs see:

How to attach javadoc or sources to jars in libs folder?



Related Topics



Leave a reply



Submit