我有点绝望的这个问题。我已经被困在这几天,需要帮助。请让我知道如果你能帮助的。
I'm sort of desperate with this question. I've been stuck on this for days and need help. Please let me know if you can help at all.
我下面的 Facebook的教程并一切顺利的话,直到我到达步骤步骤3:创建新的Facebook SDK项目。以下完全一样的网站上,并在网络上的许多不同的教程的步骤后,com_facebook_android项目是完全错误的。发生在Facebook.java和FbDialog.java的错误。我什么也不做,从一开始就错误的存在。
I'm following the Facebook tutorial and all goes well until I get to step "Step 3: Create New Facebook SDK Project". After following the steps EXACTLY as on the site, and on many different tutorials on the web, the com_facebook_android project is full of errors. The errors occur in Facebook.java and FbDialog.java. I do nothing and from the beginning the error are there.
我试过
从现有源创建项目 导入项目 重新从头开始创建项目所有这些努力的工作。是否有一个步骤中缺少,我没有做什么?没有任何人有这个问题?
None of these attempts work. Is there a step missing that I didn't do? Does anyone else have this problem?
下面是所有的错误。请,请,有人帮。
Here are all the errors. Please, please, someone help.
Facebook.java
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
FbDialog.java
The method onClick(View) of type new View.OnClickListener(){} must override a superclass method
删除重写注解只是导致更多的错误。
Removing the override annotation just causes more errors.
请帮忙。
试试这个:
右键单击项目 - >属性 - > Java编译器
right click your project -> properties -> java compiler
选择使项目的具体
,然后选择编译器补偿水平
1.6
select enable project specific
, and select compiler comp level
to 1.6