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.
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’