Migrating Realm migration to Android 7.1.2

The application crashes with the exception that some tables do not exist in the schema. I created three tables in the Realm database and created a migration for it. Application update (migration) works for all versions of Android, but for Android 7.1.2 the application crashes with the indicated exception.

Example: I had version 1.0 of the application installed on my phone, after which I installed the update for Android 7.1.2, and then updated the application to version 2.0, which contains three new tables that I mentioned.

Has anyone come across this scenario? Why migration for previous versions of Android, but on 7.1.2 does not work?

Real Time Version: 3.1.4

+4
source share

Source: https://habr.com/ru/post/1677227/


All Articles