Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android/Facebook: Project is missing required library

I have imported the Facebook SDK downloading it there : https://github.com/facebook/facebook-android-sdk/commits/master and following the instructions there http://www.android10.org/index.php/articleslibraries/290-facebook-integration-in-your-android-application

I have added FacebookSDK as a Library for my current project.

But I have errors in all the Samples imported when I import the facebook project: "Project FacebookSDK is missing required library libs/android-support-v4.jar" appears as one error for FacebookSDK project And then I have "The container 'Android Dependencies' references non existing library C:...\facebook-android-sdk-master\facebook\bin\facebooksdk.jar" for all the facebook sample projects that are in the facebook project.

I tried to clear the project, to do Properties > Java Compiler > Compiler compliance level 1.6 (because 5.0 or 6.0 level was needed, not 1.7, so I downloaded jdk 1.6) tried to do Android Tools > Fix project properties

But I still have the same erros... Could someone tell me what I should do? Thanks

like image 591
morg Avatar asked Nov 29 '22 13:11

morg


1 Answers

I think you have to configure Buildpath of your project. Do this as suggested below:

RightClick on your Project -> Build Path -> Configure Buildpath

Then the window be will be shown with Libraries as one of the tab. Select that tab.

Then click Add External Jars in the right side buttons list. Add the required Jars and select OK. Once clean and build your project.

Hope this will help you.

like image 90
Avadhani Y Avatar answered Dec 09 '22 10:12

Avadhani Y