Every time I try to retrieve data from my database, I get
com.google.firebase.database.DatabaseException: Found two getters or fields with conflicting case s
I found a different solution to keep my field public String id and at the same time have the method public String getId() which I needed to implement because of an interface: Simply mark the method with @Exclude, e.g.:
public class Group implements Identifiable
{
public String id;
protected Group ()
{
}
public Group ( String id )
{
this.id = id;
}
@Exclude
@Override
public String getId ()
{
return id;
}
}