googleanalytics / google-analytics-plugin-for-unity

Google Analytics plugin for the Unity game creation system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Analytics V4 Unity doesn't work on android and Error?

buckbim opened this issue · comments

I imported version V4 in Unity and then It doesn't work on android but Version V3 does work.Please explain for me and fix bug right now.

I guess in v4 package they forgot about libGoogleAnalyticsServices.jar file, it should be in Assets\Plugins\Android\ folder

@hexgrimm where can i get libGoogleAnalyticsServices.jar?

@saizenmedia for example, in v3 package, or from repo source folder

How can that even happen? 12 days ago and its still missing. V4 setup is still looking at the old google play services lib folder. Why? How?

You shouldn't use libGoogleAnalyticsServices.jar. This is from V3, you should be using what is included in Google Play Services.

Somewhere around v30 they have changed where the libs are available in the Android SDK. The version I just pushed out should work with this new location. I've tried it with v32 of Google Play Services.

If you are using and older version of Google Play Services which still the libs in:
extras/google/google_play_services you should update GPS or use an older version of the plugin, but you need to run the setup script from the Google Analytics menu in Unity.

Can you all confirm what version of GPS you are using and if the updated v4 resolves your issue.

I'm using version 32 of Google Play Services.

The previous v4 unity plugin didn't copy play-services-analytics-9.4.0 nor play-services-analytics-impl-9.4.0 to the Plugins/Android folder so I was getting errors. This new one seems to have updated the PlayServicesResolver folder.

Its working now. Thanks.