Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android application has a red exclamation mark in Eclipse after importing the Facebook library

I imported the Facebook library following this tutorial: http://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/

And now I am ready to compile and try to run the project, but it is not compiling saying that I have an error in my project.

What seems to be the issue is that I have the Facebook library which I imported...it has a red exclamation mark icon next to it, and now my own project has the red exclamation mark icon next to it also since I connected the two.

Would anyone know how to fix this? For the record I don't need any facebook social functionality. What I needed was to connect my project with the appId of a Facebook app I have.

like image 940
Genadinik Avatar asked Apr 27 '13 11:04

Genadinik


3 Answers

Importing Facebook SDK

Make sure, that you have Android SDK 2.3.3 available. Import the Facebook SDK project into your workspace. Then right click on it and go to Properties > Android and choose Android SDK 2.3.3. Maybe cleanup after that and you should go fine.

Referencing to Facebook SDK

Right click on your Android application project and select Properties > Android and add the imported Facebook SDK to your project. There you go!

like image 134
fje Avatar answered Oct 04 '22 20:10

fje


You need to fix missing libraries. Right click your project->Properties->Build path->Libraries.

like image 27
DK250 Avatar answered Oct 04 '22 21:10

DK250


Generally speaking, the red exclamation mark indicates a problem with your build path. If you go into the Build Path dialog, you should see something in the Libraries tab that is broken.

like image 29
CommonsWare Avatar answered Oct 04 '22 21:10

CommonsWare