Answer the question
In order to leave comments, you need to log in
Room annotation @Ignore, always throws an error?
It is written, when adding this annotation to a field, room will not write this field to the table and read it. But I always get the error:
Entities and Pojos must have a usable public constructor. You can have an empty constructor or a constructor whose parameters match the fields (by name and type).
I also tried to create another constructor, specifying the same fields, but only the field marked with @Ignore I set the default value, it was still written to the database.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question