Reputation: 1317
I am creating a simple project to make login on Facebook. I changed the Eclipse for Android Studio and am lost on how to integrate the SDK with the project. I'm doing the following steps:
I looked some tutorials to import the Facebook SDK, and all spoke to edit the "build.gradle" and "gradle.properties" but as I said earlier, the build.gradle that appears only design I created. There appears facebook module that cared.
Upvotes: 0
Views: 2505
Reputation: 1936
Now you dont need to do all this just add dependency to your build.gradle
compile 'com.facebook.android:facebook-android-sdk:4.7.0'
Upvotes: 0
Reputation: 1317
I followed the steps of the link and it worked perfectly.
http://trinitytuts.com/integrating-facebook-sdk-application-android-studio/
Just be careful when adding the "buildToolsVersion" in "build.gradle". In the tutorial mentions buildToolsVersion "20.0.0" but had to edit for buildToolsVersion "21.1.2" as it is the last version I have on my Android Studio.
Another important point is to synchronize only after carrying out the steps.
Upvotes: 2