Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android updated realm-gradle-plugin from 5.12 to 5.15 throws exception #6619

Closed
tloshi opened this issue Sep 18, 2019 · 3 comments
Closed

Android updated realm-gradle-plugin from 5.12 to 5.15 throws exception #6619

tloshi opened this issue Sep 18, 2019 · 3 comments
Assignees

Comments

@tloshi
Copy link

tloshi commented Sep 18, 2019

Goal

I updated realm from 5.12 to 5.15 and without any changes on the models I got this exception when updating the app, but if I install as a fresh apk it will work.

java.lang.IllegalStateException: The following changes cannot be made in additive-only schema mode:
- Property '__ResultSets.created_at' has been made required.
- Property '__ResultSets.updated_at' has been made required.
at io.realm.internal.OsSharedRealm.nativeGetSharedRealm(Native Method)
at io.realm.internal.OsSharedRealm.(OsSharedRealm.java:171)
at io.realm.internal.OsSharedRealm.getInstance(OsSharedRealm.java:241)

Steps & Code to Reproduce

Calling like this:
Realm.setDefaultConfiguration(SyncConfiguration.automatic())
mRealm = Realm.getDefaultInstance()

Version of Realm and tooling

Realm version(s): 5.12 <-> 5.15.1

Realm Sync feature enabled: Yes

Android Studio version: 3.5

Android Build Tools version: 29

Gradle version: 3.5.0

Which Android version and device(s): All versions

@cmelchior
Copy link
Contributor

Hmm, this could look like something we might have caused by accident. I'll look into it. Thanks for reporting.

@realm-probot
Copy link

realm-probot bot commented Sep 18, 2019

Hey - looks like you forgot to add a T-* label - could you please add one (if you have access to add labels)?

@cmelchior
Copy link
Contributor

This should be fixed in Realm Java 5.15.2

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants