Error:(27, 13) Failed to resolve: com.google.firebase:firebase-core:9.8.0

前端 未结 3 1812
长情又很酷
长情又很酷 2020-12-15 08:13

I\'m trying to use Firebase in my app.

After adding three lines to Gradle, I get this error:

Error:(27, 13) Failed to resolve: com.google.fir

3条回答
  •  Happy的楠姐
    2020-12-15 08:36

    As described here, add this:

    dependencies {
            // ...
            classpath 'com.google.gms:google-services:3.0.0'
        }
    

    In your project level gradle file and this one in the app level gradle file:

    dependencies {
      compile 'com.google.firebase:firebase-core:9.8.0'
    }
    apply plugin: 'com.google.gms.google-services'
    

提交回复
热议问题