Closed maerlynflagg closed 3 years ago
Doesnt look good, couple of questions:
This is not necessarily related to specific devices, but could also be related to culture/language settings. If you can share as much info as possible, that would be great.
Thanks.
this issue hasn't every user. so i thought it's device specific. but currently i haven't details from the users device.
flutter_sodium version:
flutter_sodium: ^0.1.10
flutter doctor -v:
I got some device infos:
There might be an issue with Android 6 and older versions, as described in https://github.com/flutter/flutter/issues/73318.
Looks like there is a possible workaround, that you'll need to apply in your Android's App java code. See https://github.com/flutter/flutter/issues/73318#issuecomment-754598119
okay, thanks. workaround looks simple.
@kozw I'm running into the same issue on a few devices that I unfortunately do not have access to.
https://github.com/flutter/flutter/issues/73318#issuecomment-754598119 suggests two work-arounds.
My settings.gradle already resembles the first work-around, so there's nothing to change there.
As for the second, it looks to me like it's supposed to be part of the plugin's Java code? https://github.com/firstfloorsoftware/flutter_sodium/pull/63 perhaps?
@kozw @maerlynflagg Could you please tell me to where I'm supposed to add this workaround? Is there sample code I can draw inspiration from? Thank you!
i import the package and i do before any encryption call i do
Sodium.init();
but on some devices there came a exception:
dlopen failed: library "libsodium.so" not found
Screen of user:
is it a bug? or did i miss something?
do you have any idea, what the problem is?