Ambiguous getter for Field… Room persistence library

前端 未结 6 1752
野性不改
野性不改 2021-01-14 00:11

I have the following Entity

public class User {
    @PrimaryKey
    private final long id;

    private String _id;
    private String userName;
    private          


        
6条回答
  •  一向
    一向 (楼主)
    2021-01-14 01:00

    If this happens again, I would highly suggest you to autogenerate the getter and/or the setter with the help from Android Studio.

    This way you won't risk using time on this issue again.

    To see how, please check this SO-answer

提交回复
热议问题