The Class Is Missing From The Schema For This Realm
Project setting Android studio 2.3.3 Realm 3.5.0 Source RealmController.java public RealmController(Context context) { try { this.context = context; Realm.ini
Solution 1:
If you create a Realm with a given schema on the device, then if you start modifying the schema (by adding new classes, adding new fields, removing fields, adding/removing @Index
, adding/removing @Required
, changing a type, etc.) then you either need to provide a migration (example here), or you need to specify deleteIfMigrationNeeded()
on your RealmConfiguration.
Solution 2:
If you have added a new model class. You need to uninstall the app and run again. It will solve the problem.
Post a Comment for "The Class Is Missing From The Schema For This Realm"