简体   繁体   English

Facebook SDK,Android依赖项显示facebooksdk.jar丢失

[英]Facebook sdk, Android dependencies showing facebooksdk.jar is missing

在此处输入图片说明

I have downloaded facebook sdk from facebook developers site,but all the samples given in the sdk are showing the error facebooksdk.jar is missing in facebook\\bin,but I found only facebook.apk in this \\bin folder. 我已经从facebook开发者网站下载了facebook sdk,但是sdk中给出的所有示例都显示出错误错误facebooksdk.jar在facebook \\ bin中丢失了,但是我在这个\\ bin文件夹中只找到了facebook.apk。 I just like to know why I am getting this error.How can I solve this issue? 我只想知道为什么会收到此错误,如何解决此问题?

Please refer to the image which is attached below. 请参考下面的图片。 Please suggest for the solution . 请提出解决方案的建议。

I had the same problem and as I imported FacebookSDK project and all sample projects with it as described in this getting started https://developers.facebook.com/docs/android/getting-started . 我遇到了同样的问题,并按照本入门https://developers.facebook.com/docs/android/getting-started中的描述导入了FacebookSDK项目和所有示例项目。 Due to this none of the projects compiled as samples depends on facebooksdk.jar and FacebookSDK project doesn't build because of error sin other projects. 因此,所有作为样本编译的项目都不依赖facebooksdk.jar,并且由于其他项目的错误而无法构建FacebookSDK项目。 Do this: 做这个:

  1. Close all the sample projects 关闭所有示例项目
  2. Just clean and built FacebookSDK project 刚刚清理并构建了FacebookSDK项目
  3. You should see facebooksdk.jar in bin folder 您应该在bin文件夹中看到facebooksdk.jar
  4. Open all the other projects, clean and build 打开所有其他项目,清理并构建

All errors regarding the missing library should go away. 关于丢失的库的所有错误都应该消失。

Make sure the FacebookSDK is marked as a library. 确保将FacebookSDK标记为库。 Go to its Properties | 转到其属性| Android, check is "Is Library" is checked. 在Android上,检查是否为“正在检查库”。
This somehow got unchecked when I was recovering from an Eclipse crash. 当我从Eclipse崩溃中恢复时,这一问题未经检查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android Dependencies库中缺少facebooksdk.jar - facebooksdk.jar missing from Android Dependencies library 容器“ Android Dependencies”引用了不存在的库“ C:\\ Users \\ workspace \\ FacebookSDK \\ bin \\ facebooksdk.jar” - The container 'Android Dependencies' references non existing library 'C:\Users\workspace\FacebookSDK\bin\facebooksdk.jar' 尝试将facebooksdk.jar文件添加到我的项目中 - Trying to add facebooksdk.jar file to my project Facebook登录facebooksdk在Android应用程序中显示错误 - facebook login facebooksdk showing error in android app Android facebook SDK作为JAR - Android facebook SDK as JAR 罐子不匹配!修复您对FacebookSDK的依赖关系 - Jar mismatch! Fix your dependencies for the FacebookSDK 容器“ Android依赖关系”引用了不存在的库“ facebook-android-sdk \\ facebook \\ bin \\ com_facebook_android.jar” - The container 'Android Dependencies' references non existing library 'facebook-android-sdk\facebook\bin\com_facebook_android.jar' FacebookSDK与Android SDK 2.1不兼容 - FacebookSDK incompatible with Android SDK 2.1 Facebook SDK + SlidingMenu SDK = Jar不匹配! 修复您的依赖 - Facebook SDK + SlidingMenu SDK = Jar mismatch! Fix your dependencies 集成Facebook Android SDK 4.4.0后,应用程序在FacebookSdk.SdkInitialize()上崩溃了吗? - App crashing at FacebookSdk.SdkInitialize() after integrating Facebook Android SDK 4.4.0?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM