Search code examples
androidrealmrealm-mobile-platform

App crashes when changes are made in Realm database


When I update Realm database by adding one more table and installing app without uninstalling previous app. Application does not update Realm database. Some time it gets crashed.


Solution

  • I'm almost 100% positive that this has to do with your RealmConfiguration. Are you setting deleteRealmIfMigrationRequired when you build the configuration? If not, are you setting the schema version and providing a migration?

    If you're not doing one of these two things, you're... well, pretty much hosed, which kind of sounds like what you're seeing.