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

后端 未结 8 1482
夕颜
夕颜 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条回答
  •  -上瘾入骨i
    2021-02-19 03:36

    At first you should call

        dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'
        classpath 'com.google.gms:google-services:2.0.0-alpha2'
    }
    

    Don't (Avoid calling +)

    compile 'com.google.android.gms:play-services-gcm:+'
         compile 'com.google.android.gms:play-services:8.4.0'
    

    Do

         compile 'com.google.android.gms:play-services:8.4.0'
    

提交回复
热议问题