Question

I'm writing an android app that uses both ActionBarSherlock and the Facebook Android SDK. Both these libraries provide android-support-v4.jar in their libs folder:

https://github.com/facebook/facebook-android-sdk/blob/master/libs/android-support-v4.jar https://github.com/JakeWharton/ActionBarSherlock/blob/master/library/libs/android-support-v4.jar

However, in the head revision both versions of the support jar are different. This causes builds of my app using eclipse to fail.

I'm using both libraries by including them in the repo of my app as git submodules. One solution would be to fork one of these libraries, update the version of android-support-v4.jar in the fork, and point my submodule to the fork. While perhaps this is the right way to go, somehow this feels wrong.

I wanted to know if there were other alternatives before I use the above method. A number of popular Android libraries seem to use maven, is using maven a good solution for solving this problem, and a good idea for android apps in general?

Was it helpful?

Solution

First of all Delete android-support-v4.jar from All(yourProject,FacebookSDK etc. ).

Then follow below steps:

Right Click on Project -> Android Tools -> Add Support Library and The again Right Click on Project -> Android Tools -> Fix Project Properties do same on Facebook SDK and Other Libraries.

and Clean-Build all your projects(Facebook SDK,your Project and Libraries).You are Done.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top