People using Android Studio 0.8.6 could do these:
Copy ONLY facebook dir under the Facebook-android-sdk-xxx dir into your project along with app/
Now you should see Android Studio showing facebook as module
provided files('./libs/bolts.jar')
compileSdkVersion 20
or other version you defined in the appbuildToolsVersion '20.0.0'
minSdkVersion 14
targetSdkVersion 20
apply plugin: 'android-library'
dependencies {
compile 'com.android.support:support-v4:19.1.+'
provided files('./libs/bolts.jar')
}
android {
compileSdkVersion 20
buildToolsVersion '20.0.0'
defaultConfig {
minSdkVersion 14
targetSdkVersion 20
}
lintOptions {
abortOnError false
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}
Resync your gradle file & it should just work fine!