1

我只是想将facebook sdk 安装到我的 phonegap android 项目中。我跟着

  1. https://github.com/phonegap/phonegap-facebook-plugin

在安装 fbsdk 后,我已将其添加到项目下

                properties->Android->Library 

部分并选择 facebooksdk 库我在添加的库前面看到绿色刻度线。但是当我再次打开项目时

        properties->Android window

库部分下未显示绿色刻度线,

相反,我看到了红十字标记..我也添加了外部 jar文件,但找不到解决方案。有什么解决方案吗?

4

1 回答 1

2

Following are the steps to include Facebook SDK into android project:

1) Download the Facebook SDK from the https://github.com/facebook/facebook-android-sdk/ and extract it to local drive.

2) Import "facebook" as a android project into your Eclipse, this is your Facebook SDK, and You have to reference it to your android project.

3) Now create your android project.

4) Right click on it, go to Properties-->android and Add the "facebook "Library as a reference to your project. click Apply.

Check the video link: http://www.youtube.com/watch?v=w-vNi1W4fco

于 2013-07-16T11:07:51.783 回答