Ambiguous getter for Field… Room persistence library

前端 未结 6 1738
野性不改
野性不改 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 00:45

    Return types for getters should be the same as the attribute data type, if you have attribute of data type int, When I found out it fixed my problem.

    Good luck.

提交回复
热议问题