Seem doesn't get Facebook SDK resource when using Facebook Android SDK in IntelliJ IDEA 12

前端 未结 4 2150
轻奢々
轻奢々 2020-12-08 12:49

According to the article Add facebook SDK to IntelliJ Android project?, I choose to add the \"facebook.jar\" file as a Module in the \"Dependencies<

4条回答
  •  再見小時候
    2020-12-08 12:54

    Cloud's solution didn't work for me so I'll post mine below. Specifically, mine didn't work because I was already using the appcompat support library, so this will be especially useful in this case.

    ONLY DO THE HIGHLIGHTED STEPS IF YOU ARE ALREADY USING THE APPCOMPAT SUPPORT LIBRARY.

    1. Click File -> Project Structure -> Modules. Click the green + -> Import module. Select the facebook folder from the facebook SDK and click OK.
    2. Select Create module from existing sources -> Next -> Next.
    1. Click split (the pink/blue button at the top). Type FacebookDependencies in Name -> select bolts.. -> OK. Uncheck the other one (libs?).
    1. Click Next -> Next -> Finish.
    1. Click the green + on the right -> 2. Library -> (the library that contains your android-support-v4.jar - you can check in the Libraries page on the left) -> Add Selected.

    2. Click the green + on the right -> 3. Module Dependency -> appcompat -> OK.

    1. Click your module.

    2. Click the green + on the right -> 2. Library -> FacebookDependencies (or whatever name it had previously in step 3) -> Add Selected.

    3. Click the green + on the right -> 3. Module Dependency -> facebook -> OK.

提交回复
热议问题