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版本没对上,通过切换同一个版本后,解决了该问题。

相关推荐
2601_9665635220 小时前
愤怒的小鸟单机版 去广告 安卓+PC端离线纯净版 益智耐玩小游戏 不需联网 老旧手机都可以玩 怀旧手机小游戏
android·智能手机
hunterandroid20 小时前
[Android 从零到一] Retrofit 请求取消与生命周期绑定:从 Call.cancel 到协程可取消设计
android
爱跑马的程序员21 小时前
安卓专有的通信子系统-Binder IPC
android·binder·ipc·安卓间通信机制
ue星空21 小时前
【安卓逆向】为什么用Frida?
android
小驰行动派1 天前
Camx架构全景图:从V4L2到Pipeline的完整拆解
android·camera·android camera
hunterandroid1 天前
[Android 从零到一] Custom View 触摸反馈与手势冲突解决
android
coderSong25681 天前
Android | 四大组件之 BroadcastReceiver(广播接收器)
android
爱笑鱼1 天前
Android 系统启动机制(二):init.rc 不是普通脚本,service、action 和 property 怎样驱动启动?
android
新鲜势力呀1 天前
深入理解 Elliot CUDA 编程核心:PHP 实现 CUDA 并行计算思想与实践
android·开发语言·php
2501_916007471 天前
申请 iOS 推送证书并配置 APNs 群发推送教程
android·ios·小程序·https·uni-app·iphone·webview