-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Flutter] [Android] Failed to load dynamic library 'libmmkv.so': dlopen failed: library "libmmkv.so" not found #1321
Comments
I tried to implement this solution. But it didn't worked. |
Have you tried running the Android native app demo of mmkv which uses a third party library loader, does it work? |
I don't have access to the devices you listed above so I'm relying on you to test it. void main() async {
if (Platform.isAndroid) {
await loadLibrayByReLinker('libmmkv.so');
}
// must wait for MMKV to finish initialization
final rootDir = await MMKV.initialize();
print('MMKV for flutter with rootDir = $rootDir');
runApp(MyApp());
} |
Thanks for your reply. The Android native app demo of mmkv also crash on Samsung Galaxy J3: Logs:
|
From v1.3.5, MMKV no longer provides armv7 binary. You have two options.
|
This comment has been minimized.
This comment has been minimized.
v1.3.7 LTS has just been release. This Long Term Support (LTS) release primarily reintroduces support for the ARMv7 architecture and lowers the minimum SDK version requirement to 21. Please note that only critical bug fixes will be applied to the 1.3.x series. New features will be introduced in version 2.0 and later, which will discontinue support for 32-bit architectures and raise the minimum SDK version requirement to 23. |
Java & Dart
Version 1.3.5
Also reproduced on main.
The platform of MMKV
Flutter Android
The installation of MMKV
Pub dev
What's the issue?
When calling MMKV initialise on an Samsung J3,
DynamicLibrary.open('libmmkv.so')
throw.I've reproduced this issue when running the flutter exemple app from MMKV repo.
This issues seems to appears only on a few old devices.
Here is a non exhaustive list of devices.
What's the log of MMKV when that happened?
From firebase:
Logcat:
The text was updated successfully, but these errors were encountered: