Can anyone check if there are errors in it because I always get an error
com.google.firebase.database.DatabaseException: Found two getters or fields
Simply make sure that all the variables in your model class are declared as private
ie
private String name;
instead of
String name;