Error android studio can not find line

0

This appears when I add the data that the firebase gives for the implementation

    
asked by pauuu 06.07.2018 в 01:10
source

2 answers

0

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
    
answered by 06.07.2018 в 01:24
-1

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
    }
}
    
answered by 06.07.2018 в 01:24