Fixed
Status Update
Comments
yb...@google.com <yb...@google.com>
ap...@google.com <ap...@google.com> #2
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.room:room-compiler:2.7.0-alpha07
da...@google.com <da...@google.com>
[Deleted User] <[Deleted User]> #3
delete
da...@gmail.com <da...@gmail.com> #4
room:2.2.1
kotlin: 1.3.50
I am still getting this error for:
var formIds: List<Long> = arrayListOf(),
Fails with an error:
Cannot figure out how to save this field into database. You can consider adding a type converter for it.
private java.util.List<java.lang.Long> formIds;
but it works for:
var formIds: MutableList<Long> = arrayListOf(),
kotlin: 1.3.50
I am still getting this error for:
var formIds: List<Long> = arrayListOf(),
Fails with an error:
Cannot figure out how to save this field into database. You can consider adding a type converter for it.
private java.util.List<java.lang.Long> formIds;
but it works for:
var formIds: MutableList<Long> = arrayListOf(),
da...@gmail.com <da...@gmail.com> #5
sorry, it works for
var formIds: ArrayList<Long> = arrayListOf(),
var formIds: ArrayList<Long> = arrayListOf(),
Description
Version used: 1.1.1
Kotlin version: 1.2.51
Room can't detect the TypeConverter of a List<Model> if that Model itself is written in Java and if I convert this class to Kotlin, it works as expected!
I got this error no matter where I put the TypeConverters annotation!
error: Cannot figure out how to save this field into database. You can consider adding a type converter for it.
A project where this can be reproduced is attached!