Firebase DatabaseException: Failed to convert value of type java.lang.Long to String
Date : March 29 2020, 07:55 AM
around this issue The problem is that you are creating the property "mobile_phone" as a String and on Firebase it is a Long type. Change: private String mobile_phone;
private Long mobile_phone;
|
firebase.database.DatabaseException: Failed to convert value of type java.lang.Long to String
Date : March 29 2020, 07:55 AM
I wish this help you [] , The two nodes in your database indeed have a mismatch of data type : myAnswer : "21"
myAnswer : 11
myAnswer : "21"
myAnswer : "11"
myAnswer : 21
myAnswer : 11
|
com.google.firebase.database.DatabaseException: Failed to convert a value of type java.lang.String to double
Date : March 29 2020, 07:55 AM
This might help you my data in my firebase was a string instead of a double for the locationLong and locationLat as evident as the 2 quotation marks in the data. So the moral of the story here is check your variables
|
com.google.firebase.database.DatabaseException: Failed to convert value of type java.lang.Double to String
Date : March 29 2020, 07:55 AM
Hope that helps I was added some values to test and I forgot to remove them from the firebase realtime database.. And later i realized and deleted them then it worked, thanks
|
Firebase DatabaseException Failed to convert value of type java.lang.Long to String
Date : March 29 2020, 07:55 AM
will help you String totalAmount is causing the issue. In your FirebaseDB it shows value as 0 which is of a long value type. But in your POJO class it is declared as String. Hence the exception.
|