Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import 3 SDKs, get error: Found 3 versions of android-support-v4.jar

I create an Android-application. Have imported all my SDKs (GoogleSDK, FacebookSDK, AppCompatSDK)

Right-click on my project -> properties -> Android -> Add my 3 SDKs. Press on Apply and get this error:

Found 3 versions of android-support-v4.jar in the dependency list, but not all the versions are identical (check is based on SHA-1 only at this time). All versions of the libraries must be the same at this time.

What should I do? The project isnt red, there is nothing red in Order and Export, & Libraries

( This app will work from API 8 & above )

P.S If you know any link to a good tutorial there it shows how to make loginbutton for FacebookSDK 3.5, login and go back to a new Activity would be nice. Just login & signout, nothing more.

Thank you.

like image 799
DMT82 Avatar asked Oct 19 '13 21:10

DMT82


1 Answers

For different versions of android-support-v4.jar file, do following steps:-

  1. Go to libs folder of any of the most recent project (which contains latest jar file)
  2. Right click on android-support-v4.jar file and copy it.
  3. Paste the copied file in other project which are showing error.
  4. Clean the project and run it.

For integration of any of the SDKs, if you are adding a jar file, just copy the jar in your libs folder and Right click the project > Select Properties > Libraries tab > Add jars > Navigate to your project's libs folder, select the SDK's jar you want to add and you are done.

Clean the build and run.

like image 132
Bette Devine Avatar answered Oct 12 '22 09:10

Bette Devine