This question already has an answer here:
- Do I need Firebase Core for Firebase Database? 1 answer
While compiling I'm getting a warning like this,
The app Gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended.
just add the below line
updated
implementation 'com.google.firebase:firebase-core:17.0.0'