Open AndreyFetisov opened 2 weeks ago
➤ PM Bot commented:
Jira ticket: RKOTLIN-1123
Got the same issue, not knowing what exactly going on, reported to Kotlin: https://youtrack.jetbrains.com/issue/KT-70933/Kotlin-2.0.20-gets-NoSuchMethodError#focus=Comments-27-10373975.0-0
Title says 2.0.20 but the example goes with 2.1.0. Here to confirm the issue is with 2.0.20 which is the latest stable version. Realm should be ready to support this on release day.
Title says 2.0.20 but the example goes with 2.1.0. Here to confirm the issue is with 2.0.20 which is the latest stable version. Realm should be ready to support this on release day.
2.1.0 is the version of Realm Kotlin. 2.0.20 the version of Kotlin. Mixing the two causes this issue.
Any ETA on having this fixed?
There is a PR with the fix waiting for Realm to merge and release a hotfix hopefully very soon.
Thanks for reporting this @AndreyFetisov some updates: While the PR in https://github.com/realm/realm-kotlin/pull/1826 address some aspects Jetbrains introduced more compiler changes:
IrFactory
from an interface into a class which introduces a binary incompatibility between libraries shipped with kotlin 2.0.0|10 and 2.0.20 (see my slack message for details https://kotlinlang.slack.com/archives/C7L3JB43G/p1726064330074609?thread_ts=1718831903.163399&cid=C7L3JB43G ) I'm grouping potential fixes in https://github.com/realm/realm-kotlin/pull/1830 if you want to follow the progress
How frequently does the bug occur?
Always
Description
'2.1.0' fails with the below:
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
2.1.0
What Atlas App Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Android
Build environment
Android Studio version: Koala | 2024.1.1 Patch 2 Android Build Tools version: 8.5.2 Gradle version: 8.7