This appears when I add the data that the firebase gives for the implementation
Check that you are using the correct versions of each dependency, for example, try replacing:
implementation 'com.google.firebase:firebase-core:16.0.0'
by:
implementation 'com.google.firebase:firebase-core:15.0.0'
If the error continues, check that you have added the google maven repository:
url "https://maven.google.com" // Google's Maven repository
The solution is to add this in your project build.gradle (not module)
buildscript {
// ...
dependencies {
// ...
classpath 'com.google.gms:google-services:4.0.1' // google-services plugin
}
}
allprojects {
// ...
repositories {
// ...
google() // Google's Maven repository
}
}