Reputation: 6242
I am following the instructions from Facebook on how to add Facebook sdk to my Android app but my Android studio has a bit different layout. Installed a brand new version of Android studio today and created a new project. I have two build.grade files under a folder called Gradle Scripts (this is default which studio creates for me). In the instructions it says to add some lines into the build.gradle file but I have two which is it? One has a light gray note which says Project the other says Module
https://developers.facebook.com/docs/android/getting-started/
Upvotes: 0
Views: 124
Reputation: 2749
One of the build.gradle files should say (Module:app) next to it. That is where you will put the FaceBook dependencies.
In the Facebook instructions is say to add it to the Module-level file:
Add this to Module-level /app/build.gradle before dependencies:
Also in the other Gradle file it will say:
// NOTE: Do not place your application dependencies here; they belong in the individual module build.gradle files
Upvotes: 1