Hey everyone!
I'm working on an app that uses Realm as a database. I've created and populated the database in a separate application and added that realm database file to my other project. So on start of this other project I copy the database and then use it in my new app (i copy it from raw folder of my new app). This worked on every device I had access to, even updating my old app with this new version (old app didnt have realm support) worked but I started receiving crashes from multiple users of my app and here is the crashlog:
java.lang.IllegalArgumentException: Illegal Argument: Invalid format of Realm file.
at io.realm.internal.SharedGroup.createNativeWithImplicitTransactions(SharedGroup.java)
at io.realm.internal.SharedGroup.(SharedGroup.java:60)
at io.realm.Realm.(Realm.java:205)
at io.realm.Realm.createAndValidate(Realm.java:594)
at io.realm.Realm.create(Realm.java:564)
at io.realm.Realm.getInstance(Realm.java:537)
Both projects I have, the one that generates the database file and the one that is actually using the database file are with 0.82.1 realm version. Can you help me out on this? I cant replicate this issue on my device but I have 10 users reporting me this crash...