google-analytics-plugin icon indicating copy to clipboard operation
google-analytics-plugin copied to clipboard

Build failed after adding this plugin

Open Superprogrameur59 opened this issue 6 years ago • 3 comments

Hello,

I have just added this plugin and my build fail: image

Here is my ionic info : image

and my config.xml plugin section: image

Can someone help me ? thanks

Superprogrameur59 avatar Aug 09 '18 21:08 Superprogrameur59

I have found the solution! In your project go to ./plugins/cordova-plugin-google-analytics/plugin.xml (the folder wher your plugin is downloaded) and change this :

<framework src="com.google.android.gms:play-services-analytics:$GMS_VERSION" />

to this:

<framework src="com.google.android.gms:play-services-analytics:11.0.1" />

Hope I can help somebody !

Superprogrameur59 avatar Aug 10 '18 16:08 Superprogrameur59

GMS_VERSION is a OS variable, it need to be added to the env

victorsosa avatar Aug 25 '18 15:08 victorsosa

This problem is solved in docs of this plugin. See https://github.com/danwilson/google-analytics-plugin#configuring-play-services-version

dmitriy-fullstack-2010 avatar Nov 11 '18 07:11 dmitriy-fullstack-2010