-
Notifications
You must be signed in to change notification settings - Fork 61
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
No implementation found for void io.realm.kotlin.internal.interop.realmcJNI.set_log_callback #1508
Comments
It looks like the native code doesn't contain that particular method. It was added in 1.8.0, so perhaps you are somehow loading an older version of the native code. Two questions:
|
|
I just tried to run https://github.com/realm/realm-kotlin-samples/tree/main/JVMConsole with Realm 1.11.1 on Windows and it loads fine. So I still suspect it is a problem somewhere in your setup. Have you tried to reproduce it on multiple machines? (if available) If you can reproduce in a small sample project, can you share that? |
@cmelchior I found the root cause, adding a custom worker provider making it error. <provider
android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
tools:node="remove" /> |
i have the same problem but i don't have any provider in my project. Did you solve it by just removing the Provider? |
I'm using |
This solved the Problem for me without removing the InitializationProvider |
@timonmw , where did you run that code? |
@langsmith I put it in the onCreate of the Application |
any suggestion how we can apply similar changes to a react-native Android project? seems facing a similar issue when we upgraded to react-native 0.72, our project use both Getting the following error on
finding similar changes on
|
How frequently does the bug occur?
Always
Description
Trying to setup using the latest Kotlin compose multiplatform
1.5.0
. The dependency is working properly but when accessing the realm it gives an error.Stacktrace & log output
`No implementation found for void io.realm.kotlin.internal.interop.realmcJNI.set_log_callback(int, java.lang.Object) (tried Java_io_realm_kotlin_internal_interop_realmcJNI_set_1log_1callback and Java_io_realm_kotlin_internal_interop_realmcJNI_set_1log_1callback__ILjava_lang_Object_2)`
Can you reproduce the bug?
Always
Reproduction Steps
Setup the realm using kotlin compose multiplatform template
1.5.0
https://github.com/JetBrains/compose-multiplatform-template#readmeAdditional changes made:
Version
1.11.1
What Atlas App Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Windows 11
Build environment
Android Studio version: Android Studio Giraffe | 2022.3.1 Patch 1
Android Build Tools version: 8.0.2
Gradle version: 8.2.1
The text was updated successfully, but these errors were encountered: