Error when using TypeConverter with Room: Cannot figure out how to save this field into database
I get this error:
error: Cannot figure out how to save this field into database. You can
consider adding a type converter for it.
private final java.util.List stats = null;
I can't figure it out. I have Added the typeconverter to the database, but still get this error. Any ideas what I do wrong?
Entity:
@Entity
data class Detail(
@PrimaryKey val id: Int,
val stats: List,
val types: List
){
data class Stat(
val baseStat: Int,
val stat: String
)
}...