无法加载库:dlopen失败:未找到库“libboost.so”

问题描述 投票:0回答:1

我在我的设备中运行示例代码for flutter。我得到一个日志:

2019-03-28 10:07:18.105 6794-6819/com.example.ijkplayer_example E/FPS-BOOST: notifyQueue load error
2019-03-28 10:07:18.322 6794-6819/com.example.ijkplayer_example I/chatty: uid=10481(com.example.ijkplayer_example) Thread-4 identical 12 lines
2019-03-28 10:07:18.341 6794-6819/com.example.ijkplayer_example E/FPS-BOOST: notifyQueue load error
2019-03-28 10:07:18.365 6794-6819/com.example.ijkplayer_example E/FPS-BOOST: notifyQueue load error
2019-03-28 10:07:18.377 6794-6819/com.example.ijkplayer_example I/chatty: uid=10481(com.example.ijkplayer_example) Thread-4 identical 1 line
2019-03-28 10:07:18.397 6794-6819/com.example.ijkplayer_example E/FPS-BOOST: notifyQueue load error
2019-03-28 10:07:18.409 6794-6819/com.example.ijkplayer_example E/FPS-BOOST: notifyQueue load error
2019-03-28 10:07:18.417 6794-6819/com.example.ijkplayer_example E/FPS-BOOST: notifyQueue load error
2019-03-28 10:07:18.434 6794-6819/com.example.ijkplayer_example E/FPS-BOOST: notifyQueue load error
2019-03-28 10:07:18.735 6794-6819/com.example.ijkplayer_example I/chatty: uid=10481(com.example.ijkplayer_example) Thread-4 identical 17 lines
2019-03-28 10:07:18.739 6794-6819/com.example.ijkplayer_example E/FPS-BOOST: notifyQueue load error

在此日志出现之前,将有一个:

无法加载库:dlopen失败:未找到库“libboost.so”。

但我没有在我的代码中使用该库。我发现扑动的代码,颤振的框架和引擎,也找不到它。

flutter create example_code
cd example code
flutter run
android flutter
1个回答
0
投票

尝试在app文件夹build.gradle文件defaultConfig部分添加ndk配置。这可能会对你有所帮助。

 defaultConfig {
        applicationId "com.ex"
        minSdkVersion 19
        targetSdkVersion 28
        ndk {
            // abiFilters "armeabi-v7a"
            abiFilters "armeabi", "x86", "armeabi-v7a"
           // abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
        }
    }
© www.soinside.com 2019 - 2024. All rights reserved.