安卓/ Facebook的:项目缺少所需的库 [英] Android/Facebook: Project is missing required library

查看:223
本文介绍了安卓/ Facebook的:项目缺少所需的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经导入Facebook的SDK下载它还有:的https:// github上。 COM / Facebook的/ Facebook的Andr​​oid的SDK /款/主并按照指示有<一href="http://www.android10.org/index.php/articleslibraries/290-facebook-integration-in-your-android-application" rel="nofollow">http://www.android10.org/index.php/articleslibraries/290-facebook-integration-in-your-android-application

I have imported the Facebook SDK downloading it there : https://github.com/facebook/facebook-android-sdk/commits/master and following the instructions there http://www.android10.org/index.php/articleslibraries/290-facebook-integration-in-your-android-application

我添加FacebookSDK作为一个图书馆为我的当前项目。

I have added FacebookSDK as a Library for my current project.

不过,我在所有的时候我导入Facebook的项目导入示例错误: 项目FacebookSDK缺少所需的库库/ Android的支持,v4.jar似乎是一个错误FacebookSDK项目 然后,我有 容器Android的依赖关系引用不存在的库C:\ Facebook的Andr​​oid的SDK主\ Facebook的\ BIN \ facebooksdk.jar,为所有在facebook的项目facebook的样本项目

But I have errors in all the Samples imported when I import the facebook project: "Project FacebookSDK is missing required library libs/android-support-v4.jar" appears as one error for FacebookSDK project And then I have "The container 'Android Dependencies' references non existing library C:...\facebook-android-sdk-master\facebook\bin\facebooksdk.jar" for all the facebook sample projects that are in the facebook project.

我试图清理项目,做属性> Java编译器>编译器符合性水平1.6(因为5.0或6.0的水平是必要的,而不是1.7,所以我下载JDK 1.6) 试着做机器人工具>修复项目属性

I tried to clear the project, to do Properties > Java Compiler > Compiler compliance level 1.6 (because 5.0 or 6.0 level was needed, not 1.7, so I downloaded jdk 1.6) tried to do Android Tools > Fix project properties

不过,我仍然有同样的错误回报... 有人能告诉我,我该怎么办? 谢谢

But I still have the same erros... Could someone tell me what I should do? Thanks

推荐答案

我认为你必须配置你的项目的Buildpath。做到这一点的建议如下:

I think you have to configure Buildpath of your project. Do this as suggested below:

RightClick on your Project -> Build Path -> Configure Buildpath

那么窗口会显示与来作为标签之一。选择该选项卡。

Then the window be will be shown with Libraries as one of the tab. Select that tab.

然后点击添加外部JAR 在右侧的按钮列表。添加所需的广口瓶,然后选择确定。一旦清理并生成项目。

Then click Add External Jars in the right side buttons list. Add the required Jars and select OK. Once clean and build your project.

希望这会帮助你。

这篇关于安卓/ Facebook的:项目缺少所需的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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