Skip to content

FvpPlugin: static initializer: loadLibrary fvp_plugin error: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt6__ndk122__libcpp_verbose_abortEPKcz" #358

Description

@Koenger

Describe the bug

使用 flutter create -t module my_flutter指令创建一个flutter module,添加了fvp插件,开发完成后,使用
dependencies {
debugImplementation
'com.example.flutter_module:flutter_debug:1.0'
profileImplementation
'com.example.flutter_module:flutter_profile:1.0'
releaseImplementation
'com.example.flutter_module:flutter_release:1.0'
}
添加到现有的原生Android项目中,项目能正常运行,但是打开播放器时,提示:
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"...
播放失败,这是什么原因;

Expected behavior

项目能正常运行,正常播放视频

Log

Add

import 'package:fvp/fvp.dart' as fvp;

add the following lines before registerWith()

 fvp.registerWith(
    options: {
      'platforms': ['ios', 'android'],
      'video.decoders': ['FFmpeg'], // FFmpeg、AMediaCodec、MediaCodec
      'lowLatency':
          1, // 减少延时,这里有说明:https://github.com/wang-bin/mdk-sdk/issues/347
    },
  );

and

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions