Found two getters or fields with conflicting case sensitivity for property

前端 未结 6 1507
陌清茗
陌清茗 2020-12-20 17:08

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

6条回答
  •  独厮守ぢ
    2020-12-20 17:35

    Simply make sure that all the variables in your model class are declared as private

    ie

    private String name;
    

    instead of

    String name;
    

提交回复
热议问题