Android ndk报错error: format not a string literal and no format arguments [-Werror=format-security]
2016-04-21 09:12
615 查看
问题:
在使用ndk-r9版本的ndk-build命令编译jni时,报错error: format not a string literal and no format arguments
[-Werror=format-security]
原因: Android-ndk-r9与Eclipse的版本不兼容问题。
解决方案:
在对应项目的jni/Application.mk添加一句话
APP_CFLAGS += -Wno-error=format-security
意思就是忽视这个error
在使用ndk-r9版本的ndk-build命令编译jni时,报错error: format not a string literal and no format arguments
[-Werror=format-security]
原因: Android-ndk-r9与Eclipse的版本不兼容问题。
解决方案:
在对应项目的jni/Application.mk添加一句话
APP_CFLAGS += -Wno-error=format-security
意思就是忽视这个error
相关文章推荐
- Android日期时间选择对话框
- [调试] 打印类名方法名行数的Log日志
- Fragment生命周期
- Android之RadioGroup+ViewPager制作的底部导航栏
- Android SharedPreferences详解
- android基础---->音频和视频的使用
- 第十二章 、Bitmap的加载和Cache
- 第十一章、Android的线程和线程池
- 第十章、Android的消息机制
- 让我们一起来做最漂亮的Android界面吧!
- 第九章、 四大组件的工作过程
- Android全局异常统一处理
- android音视频点/直播模块开发
- android学习13——android egl hello world
- Android LayoutInflater详解
- 【Android】自定义FlowLayout,支持多种布局优化--android-flowlayout
- 使用AndroidEventBus
- Android必知必会-Fragment监听返回键事件
- Android必知必会-Fragment监听返回键事件
- Android项目开发填坑记-Fragment的onAttach