com.google.firebase.database.DatabaseException

Expected a List while deserializing, but got a class java.util.HashMap


Solutions on the web52

Solution icon of stackoverflow
Expected a List while deserializing, but got a class java.util.HashMap

Solution icon of stackoverflow
via Stack Overflow by rolandl
, 8 months ago
Expected a List while deserializing, but got a class java.util.HashMap

Solution icon of stackoverflow
Expected a List while deserializing, but got a class java.util.HashMap

Solution icon of stackoverflow
Expected a List while deserializing, but got a class java.util.HashMap

Solution icon of stackoverflow
Expected a List while deserializing, but got a class java.lang.String

Solution icon of stackoverflow
Failed to convert a value of type java.util.HashMap to double

Solution icon of stackoverflow
via Stack Overflow by Amine Messabhia
, 3 months ago
Failed to convert a value of type java.util.HashMap to double

Solution icon of stackoverflow
Not a direct subclass of GenericTypeIndicator: class com.google.firebase.database.GenericTypeIndicator

Solution icon of stackoverflow
via Stack Overflow by ljeabmreosn
, 8 months ago
Class java.util.UUID is missing a constructor with no arguments

Solution icon of stackoverflow
Class com.google.firebase.udacity.friendlychat.FriendlyMessage is missing a constructor with no arguments

Stack trace

  • com.google.firebase.database.DatabaseException: Expected a List while deserializing, but got a class java.util.HashMap at com.google.android.gms.internal.zzbqi.zza(Unknown Source) at com.google.android.gms.internal.zzbqi.zza(Unknown Source) at com.google.android.gms.internal.zzbqi.zzb(Unknown Source) at com.google.android.gms.internal.zzbqi$zza.zze(Unknown Source) at com.google.android.gms.internal.zzbqi$zza.zzaG(Unknown Source) at com.google.android.gms.internal.zzbqi.zze(Unknown Source) at com.google.android.gms.internal.zzbqi.zzb(Unknown Source) at com.google.android.gms.internal.zzbqi.zza(Unknown Source) at com.google.firebase.database.DataSnapshot.getValue(Unknown Source) at com.firebase.ui.database.FirebaseRecyclerAdapter.parseSnapshot(FirebaseRecyclerAdapter.java:163) at com.firebase.ui.database.FirebaseRecyclerAdapter.getItem(FirebaseRecyclerAdapter.java:152) at com.firebase.ui.database.FirebaseRecyclerAdapter.onBindViewHolder(FirebaseRecyclerAdapter.java:195) at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6279) at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6312) at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5258) at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5521) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5363) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5359) at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2141) at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1525) at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1488) at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:560) at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3506) at android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2969) at android.view.View.measure(View.java:18809) at android.support.v4.widget.NestedScrollView.measureChildWithMargins(NestedScrollView.java:1420) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.support.v4.widget.NestedScrollView.onMeasure(NestedScrollView.java:482) at android.view.View.measure(View.java:18809) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5954) at android.support.design.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:714) at android.support.design.widget.HeaderScrollingViewBehavior.onMeasureChild(HeaderScrollingViewBehavior.java:90) at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onMeasureChild(AppBarLayout.java:1375) at android.support.design.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:784) at android.view.View.measure(View.java:18809) at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:1081) at android.view.View.measure(View.java:18809) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5954) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139) at android.view.View.measure(View.java:18809) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5954) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465) at android.widget.LinearLayout.measureVertical(LinearLayout.java:748) at android.widget.LinearLayout.onMeasure(LinearLayout.java:630) at android.view.View.measure(View.java:18809) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5954) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:18809) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5954)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.