Search code examples
androidactionbarsherlockslidingmenu

How to use StaggeredGridView and ActionBarSherlock combined


I have implemented sliding menu with action bar using "ActionBar Sherlock and Sliding menu" libraries.Now i tried to use staggeredGridView. But i am getting error as "JAR MISMATCH present in StaggeredGridView-Android Support v4 library"

How can i use staggeredGridView along with actionBar sherlock?


Solution

  • Both ABS and StaggeredGridView come with the compatibility library, but probably with different versions of the JAR. You should replace one of the compatibility JAR's with the other, the Android SDK will ignore duplicate JAR's as long as they are exact matches.

    As to which JAR you should copy, always copy the newest version (probably ABS version), alternatively you can grab the latest version from the SDK and overwrite them both.

    Hope this helps..