Realm-java: Android updated realm-gradle-plugin from 5.12 to 5.15 throws exception

Created on 18 Sep 2019  Â·  3Comments  Â·  Source: realm/realm-java

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

O-Community T-Bug

Most helpful comment

This should be fixed in Realm Java 5.15.2

All 3 comments

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

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

This should be fixed in Realm Java 5.15.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cmelchior picture cmelchior  Â·  3Comments

iAbdulaziz picture iAbdulaziz  Â·  3Comments

yuwu picture yuwu  Â·  3Comments

Merlin1993 picture Merlin1993  Â·  3Comments

bryanspano picture bryanspano  Â·  3Comments