The answer below is deprecated, refer to the actual solution .
If it's just a can, you can add it depending on the module .
If you want to use the Android library with source code, you need to create a new module in IDEA with Android Facet and specify in the facet settings which it represents the Android Library Project. Customize the contents of the module and the source roots, and then add this module depending on your Android application module.
Here are the screenshots for configuring the Android Android Android SDK in IDEA:



Please note that the facebook subdirectory from the GitHub repository is installed in the root module and the Is Library Project checkbox is checked.
If you add this module depending on your application, everything should be built perfectly.
I also downloaded a sample project consisting of a simple sample provided using the SDK and this facebook API as a dependency, you can download and use it for reference .
CrazyCoder
source share