java.lang.AssertionError: Missing field in com.google.android.gms.internal.zzajy$zza

Stack Overflow | Mohamed Maged | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    my shared pref to store data of list view and retrieve it back doesn't work

    Stack Overflow | 5 months ago | Mohamed Maged
    java.lang.AssertionError: Missing field in com.google.android.gms.internal.zzajy$zza

    Root Cause Analysis

    1. java.lang.AssertionError

      Missing field in com.google.android.gms.internal.zzajy$zza

      at com.google.gson.internal.bind.TypeAdapters$EnumTypeAdapter.<init>()
    2. Gson
      Gson.toJson
      1. com.google.gson.internal.bind.TypeAdapters$EnumTypeAdapter.<init>(TypeAdapters.java:812)
      2. com.google.gson.internal.bind.TypeAdapters$30.create(TypeAdapters.java:838)
      3. com.google.gson.Gson.getAdapter(Gson.java:416)
      4. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getFieldAdapter(ReflectiveTypeAdapterFactory.java:135)
      5. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.<init>(ReflectiveTypeAdapterFactory.java:105)
      6. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:104)
      7. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:160)
      8. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:96)
      9. com.google.gson.Gson.getAdapter(Gson.java:416)
      10. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getFieldAdapter(ReflectiveTypeAdapterFactory.java:135)
      11. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.<init>(ReflectiveTypeAdapterFactory.java:105)
      12. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:104)
      13. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:160)
      14. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:96)
      15. com.google.gson.Gson.getAdapter(Gson.java:416)
      16. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getFieldAdapter(ReflectiveTypeAdapterFactory.java:135)
      17. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.<init>(ReflectiveTypeAdapterFactory.java:105)
      18. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:104)
      19. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:160)
      20. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:96)
      21. com.google.gson.Gson.getAdapter(Gson.java:416)
      22. com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:53)
      23. com.google.gson.Gson.getAdapter(Gson.java:416)
      24. com.google.gson.Gson.toJson(Gson.java:653)
      25. com.google.gson.Gson.toJson(Gson.java:640)
      26. com.google.gson.Gson.toJson(Gson.java:595)
      26 frames
    3. com.example.android
      light.onCreate
      1. com.example.android.mechantus.light.onCreate(light.java:53)
      1 frame
    4. Android Platform
      ActivityThread.handleLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6237)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
      4 frames