Import SDK to Facebook for Eclipse cannot allow java / Android import

I just imported the Facebook SDK into Eclipse, but there are some errors in the FacebookSDK project that I cannot fix. A project in Project Explorer is as follows:

enter image description here

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

enter image description here

When I move the cursor over these errors, it says: "import ... cannot be allowed." Am I not seeing something here?

+4
source share
4 answers

You need to import the Facebook-SDK into Eclipse first .

Facebook-SDK .

:

AndroidOk.

, , , , , .

+3

Android Facebook SDK?

FacebookSDK, "", "Android"

.

+3

You need to mark the facebook sdk project as a library in the project properties and after that go to the properties of your project and add a link project, which is an imported facebook sdk file

0
source

Use this link to download https://github.com/facebook/facebook-android-sdk/archive/master.zip

After that, run all the banks in the lib folder.

-1
source

All Articles