Plugin with id 'com.google.gms.google-services' not found

前端 未结 10 957
有刺的猬
有刺的猬 2020-12-02 18:04

I have followed this link to integrate ads in my app. But it shows this error:

\"error

This is

相关标签:
10条回答
  • 2020-12-02 18:35

    Had the same problem.

    Fixed by adding the dependency

    classpath 'com.google.gms:google-services:3.0.0'
    

    to the root build.gradle.

    https://firebase.google.com/docs/android/setup#manually_add_firebase

    0 讨论(0)
  • 2020-12-02 18:38
    apply plugin: 'com.google.gms.google-services'
    

    add above line at the bottom of your app gradle.build.

    0 讨论(0)
  • 2020-12-02 18:40

    Go To Setting > Android SDK > SDK Tools > Google Play Services

    0 讨论(0)
  • 2020-12-02 18:42

    I changed google-services classpath version from 4.2.0 to 3.0.0

    classpath 'com.google.gms:google-services:3.0.0'
    

    Then rebuild the project, Then strangely it suggested me to add firebase core to the project.

    Then I added firebase core on the app(module)

    implementation 'com.google.firebase:firebase-messaging:16.0.8'
    

    Then the error disappeared magically.

    0 讨论(0)
提交回复
热议问题