0
私は部屋のライブラリを使用していますが、私は以下のエンティティ言及している:Androidルームライブラリエラー:フィールドの設定ツールが見つかりません。 (Kotlin)
error: Cannot find setter for field.
e:
e: private java.lang.Integer is_selected;
e:
^
:あなたは、私はすべてのフィールドが
var
として宣言しているが、それはまだのようにエラーが表示されている見ることができるよう
@Parcelize
@Entity(tableName = "tb_option")
data class OptionsTable(
var question_id: Int? = null,
var option_id: Int? = null,
var option: String? = null,
var is_selected: Int? = null,
@PrimaryKey(autoGenerate = true)
var sr_no: Int = 0) : Parcelable
を
これを修正してください。
おかげ