Skip to content

[Bug] Android app crashing when using withEncryption() in version 10.0.3 #359

@rkostrab

Description

@rkostrab

Describe the bug
I am using mmkv for redux persist. I am initalizing it like this:

const storage = new MMKVLoader().withEncryption().initialize();

...and this causes app crash. I see this in logcat:

java_vm_ext.cc:598] JNI DETECTED ERROR IN APPLICATION: GetStringUTFChars received NULL jstring
java_vm_ext.cc:598]     in call to GetStringUTFChars
java_vm_ext.cc:598]     from void com.facebook.jni.NativeRunnable.run()
runtime.cc:708] Runtime aborting...

if I remove encryption:
const storage = new MMKVLoader().initialize();

... then app is working normally

Platform Information:

  • OS: Android
  • React Native Version 0.74.5
  • Library Version 10.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions