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

前端 未结 14 1951
半阙折子戏
半阙折子戏 2020-11-27 11:32

I am trying to create 2 versions of an Android app (free/paid). I have an Android Library that contains files common to both. I created a new Android project and am trying t

相关标签:
14条回答
  • 2020-11-27 11:41
    1. Delete android-support-v4.jar from App Free
    2. Add the same file from App Library to App Free
    0 讨论(0)
  • 2020-11-27 11:41

    I just had this issue, but instead of deleting the conflicting android-support-v4.jar I just renamed it to android-support-v4_PROJECT.jar, which removed the conflict.

    If you are wondering how to rename a file in Eclipse, you just need to highlight the file and press F2.

    0 讨论(0)
  • 2020-11-27 11:42

    Use same jar while adding external jars in both library and project

    0 讨论(0)
  • 2020-11-27 11:43

    Above solutions mostly solve the problem. after using these solutions and problem persists. Then

    GO to project folder -> libs-> and delete "android-support-v4.jar"

    Hoping it would solve your problem as it solved my problem.

    0 讨论(0)
  • 2020-11-27 11:45

    Check if there are irrelevant projects open for you, because that was the case for me, it seemed one of the JAR files was related to a different project, which I wasn't working with, so I just closed that project, did a clean build of the project I'm working on and didn't have the problem anymore! Hope this helps someone!

    0 讨论(0)
  • 2020-11-27 11:47

    VERY SIMPLE SOLUTION

    A very simple solution worked for my case, just copy the same (android-support-v4.jar) jar file to all the projects. There will be no more conflict.

    1 Copy the jar file android-support-v4.jar from libs folder of any one project.

    2 Delete the jar file android-support-v4.jar from second project's libs folder which is already existing.

    3 Paste the newly copied jar file of first project to libs folder of second project.

    The jar mismatch issue will be resolved by now.

    0 讨论(0)
提交回复
热议问题