cannot locate symbol _ZTVNSt6__ndk119basic_ostringstreamIcNS_

编译正常,运行报错:cannot locate symbol ZTVNSt6__ndk119basic_ostringstreamIcNS

简单记录:

1、编译ffmpeg so库,编译正常;

2、AndroidStudio建立项目,引用so库,编译正常,运行起来后被catch了,报错:cannot locate symbol ZTVNSt6__ndk119basic_ostringstreamIcNS

转换接口 --> ostringstream

3、查了下相关资料,大概意思是libc++库没有对上或者没有找到;

4、尝试AndroidStudio中增加依赖,但是还是报错;

复制代码
arguments "-DANDROID_STL=c++_shared"

5、通过查询网上一些解释,大概意思编译ffmpeg的NDK版本和androidstudio用的NDK版本没对上,通过切换同一个版本后,解决了该问题。

相关推荐
海天鹰15 小时前
PHP上传文件
android·开发语言·php
2501_9159184116 小时前
详解iOS App上架至App Store的全流程步骤与注意事项
android·macos·ios·小程序·uni-app·cocoa·iphone
码农coding18 小时前
android12 SystemUI之StatusBar(二)
android
Lesile19 小时前
Interview#1 历史演进:MVC · MVP · MVVM · MVI架构详解
android·android jetpack
杉氧20 小时前
Flutter 像素级还原实战:用 CustomPaint 与 Bezier 曲线手绘精致图针
android·前端·flutter
我命由我123451 天前
Android 在构建过程中,发现有两个依赖库都包含了相同路径的资源文件
android·java·开发语言·java-ee·kotlin·android-studio·android runtime
Coffeeee1 天前
谷歌的一个优化建议,让我重新学了一遍Android里面如何正确处理位图
android·google·kotlin
冰暮流星1 天前
mysql之新建表及对表的查询
android·数据库·mysql
用户2018792831671 天前
彻底搞懂LayoutInflater、ViewInflater与textViewStyle优先级:XML属性为何能覆盖全局样式?
android
达达尼昂1 天前
AI Native 工程实践:如何为 Claude 5 设计更有效的上下文
android·人工智能·后端