Android Facebook SDK 导入出现错误 - Eclipse [英] Android Facebook SDK import occurs with errors - Eclipse
问题描述
我对这个问题有点绝望.我已经坚持了好几天了,需要帮助.如果您能提供帮助,请告诉我.
我正在关注
我试过了
- 从现有源创建项目
- 导入项目
- 从头开始重新创建项目
这些尝试都不起作用.是否缺少我没有做的步骤?其他人有这个问题吗?
这里是所有的错误.请,请,有人帮忙.
Facebook.java
Facebook.TokenRefreshServiceConnection 类型的方法 onServiceConnected(ComponentName, IBinder) 必须重写超类方法Facebook.TokenRefreshServiceConnection 类型的 onServiceDisconnected(ComponentName) 方法必须覆盖超类方法
FbDialog.java
new View.OnClickListener(){} 类型的方法 onClick(View) 必须覆盖超类方法
删除覆盖注释只会导致更多错误.
请帮忙.
试试这个:
右击你的项目->属性->java编译器
选择 enable project specific
,并选择 compiler comp level
to 1.6
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.
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.
I've tried
- creating the project from existing source
- importing the project
- re-creating the project from scratch
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
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
Removing the override annotation just causes more errors.
Please help.
try this:
right click your project -> properties -> java compiler
select enable project specific
, and select compiler comp level
to 1.6
这篇关于Android Facebook SDK 导入出现错误 - Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!