playgameservices / android-basic-samples

Google Play game services - Android samples
Apache License 2.0
970 stars 972 forks source link

android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.gms.games.snapshot.SnapshotMetadataEntity #307

Closed jjmartinezdarc closed 4 years ago

jjmartinezdarc commented 4 years ago

I'm facing error when trying to load snapshot from saved games. It is working in debug build, but when I tried to download it from internal testing this error always occurs

Caused by: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.gms.games.snapshot.SnapshotMetadataEntity at android.os.Parcel.readParcelableCreator(Parcel.java:2831) at android.os.Parcel.readParcelable(Parcel.java:2757) at android.os.Parcel.readValue(Parcel.java:2660) at android.os.Parcel.readArrayMapInternal(Parcel.java:3029) at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:288) at android.os.BaseBundle.unparcel(BaseBundle.java:232) at android.os.BaseBundle.containsKey(BaseBundle.java:504) at android.content.Intent.hasExtra(Intent.java:7257) at com.myapps.app.MainActivity.onActivityResult(Unknown Source:18) at android.app.Activity.dispatchActivityResult(Activity.java:7454) at android.app.ActivityThread.deliverResults(ActivityThread.java:4353)

jjmartinezdarc commented 4 years ago

I already solved it. Since my release build is using pro guard I needed to add some configuration described here