Contains Illegal Final/immutable Field Id

[Solved] Contains Illegal Final/immutable Field Id | Kotlin - Code Explorer | yomemimo.com
Question : contains illegal final/immutable field "id"

Answered by : hannan

import io.realm.Realm
import io.realm.RealmModel
import io.realm.annotations.PrimaryKey
import io.realm.annotations.RealmClass
@RealmClass
open class Example( @PrimaryKey open var Id : Long = 0, open var Field : String = ""
) : RealmModel

Source : | Last Update : Fri, 15 Apr 22

Answers related to contains illegal final/immutable field id

Code Explorer Popular Question For Kotlin