I am trying to integrate Google Play Games into my app. It is currently working in debug mode. However, it does not seem to work in release mode. I am getting errors. I tried clean and rebuild.
java.lang.RuntimeException: Unable to get provider com.google.android.gms.measurement.AppMeasurementContentProvider: java.lang.ClassNotFoundException
And then this one:
GOOGLE PLAY SERVICES EXCEPTION: com.google.android.gms.common.GooglePlayServicesUtil
Followed by this one:
There is a problem with the Google Play Services library, which is required for Android Advertising ID support. The Google Play Services library should be integrated in any app shipping in the Play Store that uses analytics or advertising.
What could be wrong? I tried experimenting with Gradle, but no luck yet.
If I disable Proguard, it works! This seems to be a known issue, but not resolved yet. Any ideas?