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<
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.
File -> Project Structure -> Modules. Click the green + -> Import module. Select the facebook folder from the facebook SDK and click OK.Create module from existing sources -> Next -> Next.
- Click
split (the pink/blue button at the top). TypeFacebookDependenciesinName-> selectbolts..->OK. Uncheck the other one (libs?).
Next -> Next -> Finish.
Click the
green +on the right ->2. Library-> (the library that contains your android-support-v4.jar - you can check in theLibrariespage on the left) ->Add Selected.Click the
green +on the right ->3. Module Dependency->appcompat->OK.
Click your module.
Click the green + on the right -> 2. Library -> FacebookDependencies (or whatever name it had previously in step 3) -> Add Selected.
Click the green + on the right -> 3. Module Dependency -> facebook -> OK.