Android Facebook SDK configuration on Eclipse

前端 未结 3 2069
心在旅途
心在旅途 2020-12-06 02:05

I downloaded the android\'s facebook sdk but so far I couldn\'t configure properly. Eclipse doesn\'t recognize the facebook sdk as a project.

Does anyone got this pr

3条回答
  •  时光说笑
    2020-12-06 02:48

    following steps are for creating facbook-android.jar (use this jar file in your any project)


    Step1: Download Facebook Android SDK from github.
    Step2: Extract it. (at any location).
    Step3: In Eclipse create new project using create project from existing source option
    Step4: Enter the project name as "com_facebook_android".
    Step5: Set Location to "facebook" folder in extracted location.
    Step6: Click Finish.
    Step7: Select the "com_facebook_android" project in project explorer and right click
    select export option.
    Step8: In the export wizard select JAR file in Java folder.
    Step9: Click next then browse the location for jar file and give the name as yor wish like "facebook-android.jar"
    Step10: Click finish........ JAR file will be created in that location

    This is not correct process, you should use facebook-android project as library project, because resource files will not import to your project while you are using .jar file

    jar file is only for Java Projects not for Android Project, Some of jar files may work but not all..

提交回复
热议问题