I am working on android app where Firebase
is being used for maintaining mobile back end. I have database in this format on Firebase
{
Are you mapping the dataSnapshot to the correct java class?.
Because I see you have named your file as Users.java and when you getValue, you create object for User.
User user = dataSnapshot.getValue(User.class);
Instead should it be
Users user = dataSnapshot.getValue(Users.class);
Just curious whether you have named it right.
And also use a Map instead of a List for the Users and it will work for sure.
`