'Not enough information to infer type variable E
this error appear in kotlin
Not enough information to infer type variable E Classifier 'Person' does not have a companion object, and thus must be initialized here
Realm.init(this)
val config=RealmConfiguration.Builder()
.name("person.realm").build()
val realm=Realm.getInstance(config)
realm.beginTransaction()
val person=realm.createObject(Person,1)
person.name="محمود حسينى"
person.age=33
person.job="مهندس"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
