我遵循这个教程:https://developers.facebook.com/docs/android/getting-started,但是在导入示例之后,我得到了很多错误。我不得不安装其他版本的eclipse和两个不同版本的facebook-android-sdk,因为3.15.0版没有在模拟器上安装Facebook应用程序的bin文件夹。我得到的错误如下:(请注意,adt-bundle-windows-x86-20131030\sdk\是eclipse以前的版本,我必须安装新的版本,因为旧的版本不再正常工作)。
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谢谢!
发布于 2014-09-19 19:25:11
我也遇到了这个问题,解决方法如下:
然后转到android-sdk\extras\android\support\annotations并复制android-support-annotations.jar并将其粘贴到android-sdk\tools\support.
https://stackoverflow.com/questions/24502313
复制相似问题