-
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
UnsatisfiedLinkError when trying to create RealmConfig #1735
Comments
➤ PM Bot commented: Jira ticket: RKOTLIN-1074 |
It is similar to this other report. Can you reproduce the issue locally? Do you use any custom provider? Would you mind sharing a project that reproduces the issue? |
Where are you calling this code? val appInitializer = AppInitializer.getInstance(this)
appInitializer.initializeComponent(RealmInitializer::class.java) Are you removing the Initializer provider and using this code? |
Yes, I'm removing initializer in manifest and call this code in my class MainClass that inheritance from Application: class MainApplication : Application() {
|
Yes, it is similar to this issue, but the solutions that worked for this issue didn't work for mine , also I'm not using compose multiplatform, im using old approach with kotlin, i will try to re-create this issue in small demo and will link it |
I found solutions to my problem, my issue was that i had realm in module, in my module manifest i had
|
How frequently does the bug occur?
Sometimes
Description
I'm trying to initialize realm config when app starts with and then call Realm.open(realmConfig!!) when i will need it, but on call init:
fun init(context: Context) {
realmConfig = RealmConfiguration.Builder(
schema = setOf(
TransactionEntity::class,
// more classes
TaxEntity::class
)
)
.name(DATABASE_NAME)
.schemaVersion(DATABASE_VERSION)
.encryptionKey(getOrCreateEncKey(context))
.migration(Migration())
.build()
}
Stacktrace & log output
Can you reproduce the bug?
Sometimes
Reproduction Steps
Issue occurs on start of the app
Version
1.15.0
What Atlas App Services are you using?
Local Database only
Are you using encryption?
Yes
Platform OS and version(s)
Android 10
Build environment
Android Studio version: Iguana | 2023.2.1 Patch 2
Android Build Tools version: Android SDK Build-Tools 35-rc3
Gradle version: 7.5
The text was updated successfully, but these errors were encountered: