Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jar mismatch when importing ActionBarSherlock

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! Fix your dependencies. How can I solve this problem? Thanks in advance.

like image 923
Egor Avatar asked Sep 13 '12 11:09

Egor


3 Answers

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.

like image 163
ePeace Avatar answered Nov 15 '22 10:11

ePeace


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.

like image 26
JohnTube Avatar answered Nov 15 '22 08:11

JohnTube


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 !

like image 2
diptia Avatar answered Nov 15 '22 08:11

diptia