com.google.firebase.database.DatabaseException: Failed to convert value of type java.util.HashMap to String

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Xnkr
, 9 months ago
Failed to convert value of type java.util.HashMap to String
via Stack Overflow by Thanos Z
, 9 months ago
Failed to convert value of type java.util.HashMap to String
via Stack Overflow by Joe Bou Ghazali
, 6 months ago
Failed to convert value of type java.util.HashMap to String
via Stack Overflow by Ameya Babhulgaonkar
, 1 month ago
Failed to convert value of type java.lang.Long to String
via Stack Overflow by Daniel Go
, 2 weeks ago
Failed to convert value of type java.lang.Long to String
via Stack Overflow by Julia Falinska
, 8 months ago
Failed to convert value of type java.util.HashMap to String
com.google.firebase.database.DatabaseException: Failed to convert value of type java.util.HashMap to String
at com.google.android.gms.internal.zzbqi.zzaD(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.adcpnmd.mystudents.Main$1.onChildAdded(Main.java:39)
at com.google.android.gms.internal.zzblz.zza(Unknown Source)
at com.google.android.gms.internal.zzbnz.zzYj(Unknown Source)
at com.google.android.gms.internal.zzboc$1.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)

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.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.