com.google.firebase.database.DatabaseException: Failed to convert value of type java.lang.Long to String
is the error I keep getting w
When you are getting the values from database, save the values in default data type. Then, when you want to reuse the value change it into the string by using the toString() method.