Facebook SDK import to Eclipse cannot resolve java/Android imports

Viewed 10206

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

enter image description here

But when i open a file, in this case AccessToken.java, it contains all these errors

enter image description here

When i move my cursor over these errors, it says "the import...cannot be resolved".Am i missing something here?

4 Answers

You need to mark the facebook sdk project as library in the project properties and after that goto to the properties of your project and add a reference project which is the imported facebook sdk

Related