Failed to apply plugin “com.google.gms.google-services”

后端 未结 2 1791
别跟我提以往
别跟我提以往 2021-01-12 08:28

Here is my project build.gradle:

buildscript {
    ...
    dependencies {
        ...
        classpath \'com.google.gms:google-services:3.1         


        
相关标签:
2条回答
  • 2021-01-12 08:50

    You must add one dependencies in your build.gradle(Project:project_name)

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

    And add in your build.gradle(build.gradle:Module app)

    apply plugin: 'com.google.gms.google-services'

    dependencies {
    
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
    
     }
     apply plugin: 'com.google.gms.google-services'
    
    0 讨论(0)
  • 2021-01-12 09:14

    You only set apply plugin: 'com.google.gms.google-services' in the app module, and in no other modules.

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