I'm trying to add menus to my app, and for compatibility with older versions of android I decided to try ActionBarSherlock.
My app uses the support v4 library heavily, for example it uses ViewPager
.
Now, when I added ActionBarSherlock I got the "jar mismatch" error. Fixed that by removing the support library jar from the build path. but then I get "cannot be resolved to a type" for all the things that use the support library. I got it that ABS exports a few classes such as SherlockFragmentsActivity but it doesn't have anything like SherlockViewPager
.
How can I use the support library, or am I missing something here?
I don't know if there is other way to fix it, but just copy the v4 support library from ABS to your project (or the other way around) and add it to the build path. It should work and shouldn't get the "jar mismatch" error. This is the way I do it in my projects.