首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >facebook-android-sdk的问题

facebook-android-sdk的问题
EN

Stack Overflow用户
提问于 2014-07-01 12:08:26
回答 1查看 506关注 0票数 1

我遵循这个教程:https://developers.facebook.com/docs/android/getting-started,但是在导入示例之后,我得到了很多错误。我不得不安装其他版本的eclipse和两个不同版本的facebook-android-sdk,因为3.15.0版没有在模拟器上安装Facebook应用程序的bin文件夹。我得到的错误如下:(请注意,adt-bundle-windows-x86-20131030\sdk\是eclipse以前的版本,我必须安装新的版本,因为旧的版本不再正常工作)。

代码语言:javascript
复制
Description Resource    Path    Location    Type
The project cannot be built until build path errors are resolved    SwitchUserSample            Unknown Java Problem
The project cannot be built until build path errors are resolved    GraphApiSample          Unknown Java Problem
The container 'Android Dependencies' references non existing library   'C:\Users\USER\Desarrollo\adt-bundle-windows-x86-20131030\sdk\tools\support\annotations.jar' FacebookSDK     Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-   3.14.1\facebook\bin\facebooksdk.jar'   HelloFacebookSample     Build path  Build Path   Problem
The project cannot be built until build path errors are resolved    RPSSample       Unknown Java Problem
The project cannot be built until build path errors are resolved    Scrumptious     Unknown Java Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar'  GraphApiSample      Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar'  Scrumptious     Build path  Build Path Problem
The project cannot be built until build path errors are resolved    ProfilePictureSample        Unknown Java Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar'  RPSSample       Build path  Build Path Problem
The project cannot be built until build path errors are resolved    SessionLoginSample      Unknown Java Problem
The project cannot be built until build path errors are resolved    PlacePickerSample       Unknown Java Problem
The project cannot be built until build path errors are resolved    NativeAdSample      Unknown Java Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar'  PlacePickerSample       Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar'  ProfilePictureSample        Build path  Build Path Problem
The project cannot be built until build path errors are resolved    AdUnitsSample       Unknown Java Problem
The project cannot be built until build path errors are resolved    HelloFacebookSample     Unknown Java Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Desarrollo\adt-bundle-windows-x86-20131030\sdk\tools\support\annotations.jar'   NativeAdSample      Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar'  FriendPickerSample      Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Desarrollo\adt-bundle-windows-x86-20131030\sdk\tools\support\annotations.jar'   AdUnitsSample       Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar'  SessionLoginSample      Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar'  SwitchUserSample        Build path  Build Path Problem
The project cannot be built until build path errors are resolved    FacebookSDK     Unknown Java Problem
The project cannot be built until build path errors are resolved    FriendPickerSample       Unknown    Java Problem

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2014-09-19 19:25:11

我也遇到了这个问题,解决方法如下:

然后转到android-sdk\extras\android\support\annotations并复制android-support-annotations.jar并将其粘贴到android-sdk\tools\support.

  • Rename中,然后关闭所有引用FacebookSDK的示例项目,清理并生成FacebookSDK,将创建facebooksdk.jar。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24502313

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档