Jar mismatch! Fix your dependencies

后端 未结 10 1835
借酒劲吻你
借酒劲吻你 2020-11-27 11:32

Steps to reproduce:

  1. create a android project \"MyApp\"
  2. import ActionBarSherlock(ABS),Directional ViewPager(DVP), or any other open source library wh
相关标签:
10条回答
  • 2020-11-27 12:09

    Actionbarsherlock has the support library in it. This probably causes a conflict if the support library is also in your main project.

    Remove android-support-v4.jar from your project's libs directory.

    Also Remove android-support-v4.jar from your second library and then try again.

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

    0 讨论(0)
  • 2020-11-27 12:12
    1. Jar mismatch comes when you use library projects in your application and both projects are using same jar with different version so just check all library projects attached in your application. if some mismatch exist then remove it.

    2. if above process is not working then just do remove project dependency from build path and again add library projects and build the application.

    0 讨论(0)
  • 2020-11-27 12:15

    Don't Include the android-support-v4 in the library , instead you can add it to your project as an external jar using build path menu > add external jar

    Sometimes you have to clean your project.

    0 讨论(0)
  • 2020-11-27 12:21

    In my case there was another directory within my workspace, having the same jar file as the one in my project. I hadn't created that directory or anything in it. It was created by Eclipse I believe. I just erased that directory and it just runs ok.

    0 讨论(0)
  • I think you create a new workspace and import all project properly with his lib and also add external jar android-support-v4.jar in adb bundle in sdk extra files. I think its work for you. Hope all the best

    And also use the android support lib it may be help you and also update your adt bundle

    0 讨论(0)
  • 2020-11-27 12:22

    I believe you need your support package in both Library and application. However, to fix this, make sure you have same file at both locations (same checksum).

    Simply copy the support-package file from one location and copy at another then clean+refresh your library/project and you should be good to go.

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