Jar mismatch when importing ActionBarSherlock

前端 未结 4 1369
死守一世寂寞
死守一世寂寞 2021-02-07 16:11

I\'m trying to create an ActionBarSherlock project, I\'ve downloaded the library and connected it to my project. In Problems window I see the following message: Jar mismatch! Fi

相关标签:
4条回答
  • I can fix this:

    1. Right click your Project Properties
    2. Click Java Build Path
    3. Remove the android-support-v4 jar you see in the "root"
    4. Right click on "Android tools" -> Fix project...
    0 讨论(0)
  • 2021-02-07 16:55

    The above solution did not work for me .However , I deleted the supported library in libs folder of ActionBarSherlock and manually copied the android-support-v4 jar file from android-sdk/extras/support/v-4 to the same . I then followed the usual steps . It worked !

    0 讨论(0)
  • 2021-02-07 16:57

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

    That is if the support library is causing the mismatch.

    0 讨论(0)
  • 2021-02-07 17:10

    a simple right click on the ActionBarSherlock library project then

    Android Tools -> Add Support Library

    A dialog will be opened, accept the license and click install.

    Eclipse ADT will download the right support library for you.

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