libsodium-jni
libsodium-jni copied to clipboard
sodium_version_string crashes Android device
When calling sodium_version_string from an Android device it crashes the device with this error:
JNI DETECTED ERROR IN APPLICATION: attempt to return an instance of java.lang.String from byte[] org.libsodium.jni.SodiumJNI.sodium_version_string()
Any advice?
I'm not completely sure.
There used to be emulation tests that would execute on the Android emulator as part of the continuous integration build. That might help to pinpoint if this issue happens on all Android apis or just a select few.
However, I recently disabled the emulation tests as I haven't been keeping it up to date with the Android updates.