Android Facebook SDK import fails - Eclipse

I am desperately wondering this question. I am stuck on this for several days and need help. Please let me know if you can help at all.

I am following the Facebook tutorial and everything is going fine until I get the step "Step 3: create a new SDK project for Facebook." After we have completed the following steps: EXACTLY both on the site and on many different training programs on the Internet, the com_facebook_android project is full of errors. Errors occur in the files Facebook.java and FbDialog.java. I am not doing anything, and from the very beginning there is a mistake.

Untitled-1

I tried

  • creating a project from an existing source
  • project import
  • recreation of the project from scratch

. , ? - ?

. , , - .

Facebook.java

The method onServiceConnected(ComponentName, IBinder) of type Facebook.TokenRefreshServiceConnection must override a superclass method

The method onServiceDisconnected(ComponentName) of type Facebook.TokenRefreshServiceConnection must override a superclass method

FbDialog.java

The method onClick(View) of type new View.OnClickListener(){} must override a superclass method

.

, .

+5
2

:

→ properties → java compiler

enable project specific compiler comp level 1.6

+10

idiottiger , , , , Eclipse ( ) .

Eclipse! , , , .

+3

All Articles