在Eclipse上的Andr​​oid Facebook的SDK配置

问题描述:

我下载了Android的Facebook SDK但到目前为止,我无法配置正确。 Eclipse不承认Facebook的SDK作为项目。

I downloaded the android's facebook sdk but so far I couldn't configure properly. Eclipse doesn't recognize the facebook sdk as a project.

有没有人有这个问题?

您应该使用Git插件可从的 github上到Eclipse的工作空间。它的配置为一个机器人库。然后在你的Andr​​oid项目要在其中使用的库。右键单击该项目,并选择属性。点击Android的选项卡上,并在底部应该是一个部分图书馆,详细说明这里一>。单击添加,Facebook的SDK应该会出现。检查Facebook的SDK,然后它会在你的应用程序可用。

You should use the git plugin to import the facebook project from github into your eclipse workspace. It's configured as an android library. And then in your android project in which you want to use the library. Right click on the project and choose properties. Click on the Android tab, and at the bottom should be a section for libraries, detailed instructions here. Click Add, and the facebook sdk should appear. Check the facebook sdk and it will then be available in your app.