Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Unsupported Realm file format version (11) #14

Closed
lor-enz opened this issue Oct 17, 2020 · 1 comment
Closed

Unsupported Realm file format version (11) #14

lor-enz opened this issue Oct 17, 2020 · 1 comment

Comments

@lor-enz
Copy link

lor-enz commented Oct 17, 2020

When trying to read a realm file in a blank android project following the description in the readme.md I get the following error

Caused by: io.realm.exceptions.RealmFileException: Unable to open a realm at path '/data/data/myapp/files/default.realm': Unsupported Realm file format version (11)

I have the following questions:
I assume the (11) represents the version of the database file that I supply, correct?
Which database versions is the android-realm-asset-helper compatible with. Is my file too old or too new?

I'll be glad for any help :)

@mikemee
Copy link
Collaborator

mikemee commented Oct 21, 2020

Good question. I took a quick look but didn't see an answer. I think that it will depend on the version of Realm that you specific in your build.gradle file and the version of the database you created, so I suggest looking there first. Note that the Realm Studio will convert from an old format Realm file to a new one (or is it Realm Browser? Whichever one is newest!)

FYI, I just discovered a couple of days ago that current versions of Realm (as of a year or two ago even??) now have an option to provide an asset name and they will take care of copying.

I need to update the readme and mark this project as "inactive"!

@mikemee mikemee closed this as completed Oct 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants