Проблемы с facebook-Android-sdk

#android #eclipse #facebook

#Android #eclipse #Facebook

Вопрос:

Я следую этому руководству:https://developers.facebook.com/docs/android/getting-started но после импорта образцов я получаю много ошибок. Мне пришлось установить другую версию eclipse и две разные версии facebook-android-sdk, поскольку в версии 3.15.0 не было папки bin для установки Facebook app на эмулятор. Ошибки, которые я получаю, следующие: (обратите внимание, что 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:UsersUSERDesarrolloadt-bundle-windows-x86-20131030sdktoolssupportannotations.jar' FacebookSDK     Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:UsersUSERDropboxPruebaTandemfacebook-android-sdk-   3.14.1facebookbinfacebooksdk.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:UsersUSERDropboxPruebaTandemfacebook-android-sdk-3.14.1facebookbinfacebooksdk.jar'  GraphApiSample      Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:UsersUSERDropboxPruebaTandemfacebook-android-sdk-3.14.1facebookbinfacebooksdk.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:UsersUSERDropboxPruebaTandemfacebook-android-sdk-3.14.1facebookbinfacebooksdk.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:UsersUSERDropboxPruebaTandemfacebook-android-sdk-3.14.1facebookbinfacebooksdk.jar'  PlacePickerSample       Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:UsersUSERDropboxPruebaTandemfacebook-android-sdk-3.14.1facebookbinfacebooksdk.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:UsersUSERDesarrolloadt-bundle-windows-x86-20131030sdktoolssupportannotations.jar'   NativeAdSample      Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:UsersUSERDropboxPruebaTandemfacebook-android-sdk-3.14.1facebookbinfacebooksdk.jar'  FriendPickerSample      Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:UsersUSERDesarrolloadt-bundle-windows-x86-20131030sdktoolssupportannotations.jar'   AdUnitsSample       Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:UsersUSERDropboxPruebaTandemfacebook-android-sdk-3.14.1facebookbinfacebooksdk.jar'  SessionLoginSample      Build path  Build Path Problem
The container 'Android Dependencies' references non existing library 'C:UsersUSERDropboxPruebaTandemfacebook-android-sdk-3.14.1facebookbinfacebooksdk.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
  

Спасибо!

Ответ №1:

У меня тоже была эта проблема, и я решил ее следующим образом:

  • Перейдите в android-sdk extras android support annotations и скопируйте android-support-annotations.jar и вставьте его в Android-sdk tools support.
  • Переименовать в аннотации
  • Просто закройте все примеры проектов, ссылающихся на FacebookSDK, очистите и создайте FacebookSDK, facebooksdk.jar будет создан.