Android的Facebook的SDK进口发生错误 - Eclipse中 [英] Android Facebook SDK import occurs with errors - Eclipse

查看:118
本文介绍了Android的Facebook的SDK进口发生错误 - Eclipse中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点绝望的这个问题。我已经被困在这几天,需要帮助。请让我知道如果你能帮助的。

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.

我试过

  1. 从现有源创建项目
  2. 导入项目
  3. 重新从头开始创建项目

所有这些努力的工作。是否有一个步骤中缺少,我没有做什么?没有任何人有这个问题?

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

这篇关于Android的Facebook的SDK进口发生错误 - Eclipse中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆