You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
W FvpPlugin: static initializer: loadLibrary fvp_plugin error: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt6__ndk122__libcpp_verbose_abortEPKcz" referenced by "/data/app/~~TRCjrQeEUfjy8xmfDeH5yA==/com.tech.module-_Pjup2dJiB5DKjFCDDNj9w==/lib/arm64/libfvp_plugin.so"...
[✓] Flutter (Channel stable, 3.29.2, on macOS 15.6.1 24G90 darwin-arm64,
locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version
35.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor
--android-licenses
[!] Xcode - develop for iOS and macOS (Xcode 16.3)
! CocoaPods 1.15.2 out of date (1.16.2 is recommended).
CocoaPods is a package manager for iOS or macOS platform code.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/to/platform-plugins
To update CocoaPods, see
https://guides.cocoapods.org/using/getting-started.html#updating-cocoapo
ds
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.122.0)
[✓] Connected device (4 available)
Error:libfvp_plugin.so fails to load because it references __libcpp_verbose_abort, a symbol that doesn't exist in the libc++ runtime bundled in the APK.
Root Cause — C++ ABI mismatch across NDK versions
The symbol _ZNSt6__ndk122__libcpp_verbose_abortEPKcz (demangled: std::__ndk1::__libcpp_verbose_abort(char const*, ...)) was introduced in NDK r26+'s libc++. The fvp plugin compiles against this newer libc++ (the prebuilt mdk-sdk-android.7z is built with it), but the consuming Android app ships an older version of libc++_shared.so — likely from an older NDK or a dependency that bundles a stale copy.
Since the project uses c++_shared STL (android/build.gradle:63), all native libraries share a single libc++_shared.so. If any library in the APK drags in an older copy, the linker resolves to that older copy, and __libcpp_verbose_abort is missing → dlopen fails.
The Maintainer's Recommended Fixes
Unify libc++ version — ensure every native library in the APK uses the same NDK version and that the newest libc++_shared.so wins. In the consumer app's build.gradle:
Add a compatibility shim — compile libcxx_verbose_abort.cpp into libfvp_plugin.so as a stub. This provides a no-op definition of the symbol so the linker doesn't need it from libc++. This is the lower-friction fix for end users who can't control all native dependencies in their app.
Activity
wang-bin commentedon Jun 1, 2026
因为编译libfvp_plugin.so的libc++版本高,打包的libc++版本低于17。一个办法是打包用到的最新的libc++或者统一版本,另一个办法是引入兼容代码 https://github.com/wang-bin/cppcompat/blob/master/src/libcxx_verbose_abort.cpp
Koenger commentedon Jun 2, 2026
libc++ 版本相同了,但是提示了Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libfvp_plugin.so': dlopen failed: cannot locate symbol "_ZNSt6__ndk122__libcpp_verbose_abortEPKcz" referenced by "/data/app/~~7_69Ba6JxMnRAGtmH9-z1w==/com.tech.module-u4MBB0uoa5F-R79ELC5jww==/lib/arm64/libfvp_plugin.so"...
E flutter : #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43)
E flutter : #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12)
E flutter : #2 Libfvp._load (package:fvp/src/lib.dart:52:29)
E flutter : #3 Libfvp.instance (package:fvp/src/lib.dart:58:27)
E flutter : #4 Libfvp.instance (package:fvp/src/lib.dart)
E flutter : #5 Libfvp.registerType (package:fvp/src/lib.dart:68:31)
E flutter : #6 Libfvp.registerType (package:fvp/src/lib.dart)
E flutter : #7 new _GlobalCallbacks (package:fvp/src/global.dart:264:12)
E flutter : #8 _GlobalCallbacks.instance (package:fvp/src/global.dart:260:38)
E flutter : #9 _GlobalCallbacks.instance (package:fvp/src/global.dart)
E flutter : #10 setLogHandler (package:fvp/src/global.dart:252:20)
E flutter : #11 MdkVideoPlayerPlatform._setupMdk (package:fvp/src/video_player_mdk.dart:211:9)
E flutter : #12 MdkVideoPlayerPlatform.registerVideoPlayerPlatformsWith. (package:fvp/src/video_player_mdk.dart:203:7)
E flutter : #13 new Future.delayed. (dart:async/future.dart:422:42)
E flutter : #14 Timer._createTimer. (dart:async-patch/timer_patch.dart:18:15)
E flutter : #15 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:410:19)
E flutter : #16 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:441:5)
E flutter : #17 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:194:12)
wang-bin commentedon Jun 2, 2026
上传一份编译日志和apk我看看
Koenger commentedon Jun 2, 2026
fvp log.rtf
wang-bin commentedon Jun 2, 2026
要完整的编译日志,可以用命令行重定向到文件,ide里可能显示不全
wang-bin commentedon Jul 15, 2026
/oc explain this issue
opencode-agent commentedon Jul 15, 2026
Issue Explanation
Error:
libfvp_plugin.sofails to load because it references__libcpp_verbose_abort, a symbol that doesn't exist in the libc++ runtime bundled in the APK.Root Cause — C++ ABI mismatch across NDK versions
The symbol
_ZNSt6__ndk122__libcpp_verbose_abortEPKcz(demangled:std::__ndk1::__libcpp_verbose_abort(char const*, ...)) was introduced in NDK r26+'s libc++. Thefvpplugin compiles against this newer libc++ (the prebuiltmdk-sdk-android.7zis built with it), but the consuming Android app ships an older version oflibc++_shared.so— likely from an older NDK or a dependency that bundles a stale copy.Since the project uses
c++_sharedSTL (android/build.gradle:63), all native libraries share a singlelibc++_shared.so. If any library in the APK drags in an older copy, the linker resolves to that older copy, and__libcpp_verbose_abortis missing →dlopenfails.The Maintainer's Recommended Fixes
Unify libc++ version — ensure every native library in the APK uses the same NDK version and that the newest
libc++_shared.sowins. In the consumer app'sbuild.gradle:android { packagingOptions { pickFirst '**/libc++_shared.so' } }Add a compatibility shim — compile libcxx_verbose_abort.cpp into
libfvp_plugin.soas a stub. This provides a no-op definition of the symbol so the linker doesn't need it from libc++. This is the lower-friction fix for end users who can't control all native dependencies in their app.opencode session | github run