GameAnalytics proguard issue

Hi folks!
I’ve burned several hours to find the reason of the problem.

ClassNotFoundException: com.gameanalytics.sdk.GameAnalytics

Finally I solved it and posting here to prevent time loss for you :slight_smile:

When building for Android, Proguard minification process removes Game Analytics java libraries. Keep away from proguard when using Game Analytics for Android. Set Minify to None in Player Settings.

Hope it helps.

7 Likes

very helpful! thanks a lot!

Thanks!

I was trying to get rid off google warnings when was uploading to Google Play.

The warning suggests you to minify your files. I did it and then GameAnalytics stoped working.

I think you just need to take the proguard rules from here: Platform Overview - GameAnalytics Documentation and add them to the proguard file

1 Like

Man, You saved me! Thanks a lot!!!

life saver after changing unity version to lts then still didnt work while getting build there is no any error log.after then i connected to the app with logcat and i found the issue. To get mapping this is necessary but previous mappings also working fine. Thank you

You saved me! Thanks a lot!!!

Thank you very match! It helps!