com.google.firebase.database.DatabaseException

Can't convert object of type java.util.ArrayList to type com.example.vaibhav.upworkfirstproject.Related_to_card_data.Objectarraylist

Solutions on the web78

  • Can't convert object of type java.util.ArrayList to type com.example.vaibhav.upworkfirstproject.Related_to_card_data.Objectarraylist
  • Can't convert object of type java.util.ArrayList to type chat.ChatMessage
  • Can't convert object of type java.util.ArrayList to type uk.co.stableweb.kithunugee.model.Hymn
  • Stack trace

    • com.google.firebase.database.DatabaseException: Can't convert object of type java.util.ArrayList to type com.example.vaibhav.upworkfirstproject.Related_to_card_data.Objectarraylist 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:152) at com.firebase.ui.database.FirebaseRecyclerAdapter.getItem(FirebaseRecyclerAdapter.java:141) at com.firebase.ui.database.FirebaseRecyclerAdapter.onBindViewHolder(FirebaseRecyclerAdapter.java:184) 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:585) at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3506) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3254) at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1623) at android.support.v7.widget.RecyclerView$1.run(RecyclerView.java:331) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:860) at android.view.Choreographer.doCallbacks(Choreographer.java:672) at android.view.Choreographer.doFrame(Choreographer.java:605) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:846) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5441) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)

    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.