Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Google Play Games Compatibility #109
I ran into an issue regarding the compatibility between Google Analytics and Google Play Games services. After a lot of experimenting and research, I've figured out that the issue is about the Google Play Services library.
Google Play Games removes this library and replaces it with .aar files. Theoretically a good idea, since it clears up a lot of app size. But it breaks Google Analytics, which needs that library to function.
I've tried including the analytics aar file into the dependencies, as described here:
But that didn't work. The result is that Google Play Games works, but the app crashes after a few seconds due to Google Analytics. My Google Analytics works great if Google Play Games is not included in the game.
A lot of people seem to have this issue, but there seems to be no clear solution for it anywhere. What can I do to fix this?
Problem resolved. I didn't expect to find it this quickly. Apologies for somewhat hastely posting about this issue!
The only thing you need to do to get Google Analytics to work with Google PlayGames is:
That should remove the compatibility issue, and allow you to run the code.
DuskLightStudios your way doesnt solve my problem. I have last version of google analytics (V4) and also last version of google play game service ( 9.34). In editor no problem but in android i took this exception from logging with adb:
if you have an idea i will be really grateful