Reputation: 11
I'm trying to add Firebase to my android app builded with ionic, the firebase's documentation https://firebase.google.com/docs/android/setup says to add this line on my root-level build.gradle.
Here's my Project-level build.gradle (/build.gradle):
buildscript {
dependencies {
// Add this line
classpath 'com.google.gms:google-services:4.0.1'
}
}
App-level build.gradle (//build.gradle):
dependencies {
// Add this line
implementation 'com.google.firebase:firebase-core:16.0.1'
}
...
// Add to the bottom of the file
apply plugin: 'com.google.gms.google-services'
Upvotes: 1
Views: 1127
Reputation: 756
You can find both gradle files in platforms folder,
Project-level build.gradle (/build.gradle): At platforms/android/build.gradle
App-level build.gradle (//build.gradle): At platforms/android/app/build.gradle
Upvotes: 2