问题
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'
回答1:
I think your gradle has the below implementation missing. Add this to your app level build.gradle.
com.google.firebase:firebase-core:16.0.4
来源:https://stackoverflow.com/questions/52685463/gradle-must-have-dependency-on-com-google-firebasefirebase-core-for-firebase-se