Facebook SDK import to Eclipse cannot resolve java/Android imports

android, eclipse, facebook

Solution

You have to first import your Facebook-SDK to Eclipse.

Now Add this Facebook-SDK library project to your Main Project.

Steps for that:

Select Properties->Android ->Select Project Build Target -> Add -> Apply ->Ok.

After adding as a library project if you have indicated as a Green Mark that means your library project imported successfully otherwise red indicated it is not.

Problem

I just imported the Facebook SDK to Eclipse, but the project FacebookSDK has some errors which i cannot fix.The project in the Project Explorer looks like this But when i open a file, in this case AccessToken.java, it contains all these errors When i move my cursor over these errors, it says "the import...cannot be resolved".Am i missing something here?

Original source