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

后端 未结 8 1477
夕颜
夕颜 2021-02-19 02:44

I followed google documentation to integrate my app to Google Analytics. But when adding

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

and b

8条回答
  •  别那么骄傲
    2021-02-19 03:16

    Need to enter the following entry in both gradle:

    1. Add the following to the @project level gradle file:

      classpath 'com.android.tools.build:gradle:1.3.0'
          classpath 'com.google.gms:google-services:3.0.0'
      
    2. Add the following to the @app level gradle file:

      // Dependency for Google Sign-In
      compile 'com.google.android.gms:play-services-auth:9.4.0'
      
    3. Add plugin:

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

提交回复
热议问题