我正在尝试将Google Analytics集成到我的Cordova Android应用程序中。我使用了https://developers.google.com/analytics/devguides/collection/android/v4/的指南,但是当我想要添加时。
apply plugin:'com.google.gms.google-services'
将其添加到 build.gradle 中会抛出错误:
A problem occurred evaluating root project 'android'.
Failed to apply plugin [id 'com.google.gms.google-services']
Plugin with id 'com.google.gms.google-services' not found.