-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
libwebf.so load failed #66
Labels
bug
Something isn't working
Comments
The error happen random on andorid platform which is vivo and oppo. |
dart ffi have some error |
developer can use this code to resolve this problem public final class XLoader implements FlutterPlugin {
@Override
public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {
loadLibrary();
}
@Override
public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {}
private static boolean isLibraryLoaded = false;
private static void loadLibrary() {
if (isLibraryLoaded) {
return;
}
// Loads `libX.so`.
System.loadLibrary("X");
isLibraryLoaded = true;
}
} |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected version
main
No same issues found.
Steps to Reproduce
Code example
ArgumentError: Invalid argument(s): Failed to load dynamic library 'libwebf.so': dlopen failed: library "libwebf.so" not found
#0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11)
#1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:20)
#2 WebfDynamicLibrary.ref (package:webf/src/bridge/dynamic_library.dart:40)
#3 _registerPluginByteCode (package:webf/src/bridge/to_native.dart:257)
#4 registerPluginByteCode (package:webf/src/bridge/to_native.dart)
Expected results
can load library
Actual results
some android platform(such as ,vivo/oppo, os 6.0) load libwebf.so error。
The text was updated successfully, but these errors were encountered: