google-analytics-plugin
google-analytics-plugin copied to clipboard
Build failed after adding this plugin
Hello,
I have just added this plugin and my build fail:
Here is my ionic info :
and my config.xml plugin section:
Can someone help me ? thanks
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 !
GMS_VERSION is a OS variable, it need to be added to the env
This problem is solved in docs of this plugin. See https://github.com/danwilson/google-analytics-plugin#configuring-play-services-version