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

后端 未结 8 1475
夕颜
夕颜 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:38

    Change following code in project.properties from:

    cordova.system.library.2=com.google.android.gms:play-services-gcm:+
    cordova.system.library.3=com.google.android.gms:play-services-location:+
    

    to

    cordova.system.library.2=com.google.android.gms:play-services-gcm:11.0.1
    cordova.system.library.3=com.google.android.gms:play-services-location:11.0.1
    

    and add google-service.json file to app module

提交回复
热议问题