jni编译时出现:warning: format '%d' expects argument of type 'int', but argument 4 has
来源:互联网 发布:知乎2016年度100问 编辑:程序博客网 时间:2024/05/22 04:44
原因:在进行jni编译时,Application.mk中APP_PLATFORM的版本太低导致,如下:
#APP_ABI := armeabi armeabi-v7a x86 mips arm64-v8a x86_64 mips64
#APP_ABI := x86_64
APP_ABI := armeabi armeabi-v7a x86
APP_STL:= gnustl_static
APP_PLATFORM=android-9 ---->APP_PLATFORM=android-18
改成18或以上就ok
0 0
- jni编译时出现:warning: format '%d' expects argument of type 'int', but argument 4 has
- 编译告警:“warning: format '%d' expects type 'int', but argument 4 has type 'unsigned long'”
- [C/C++]warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wforma
- linux c之提示format‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat
- g++编译报错原因分析 format ?.d?.expects argument of type ?.nt?. but argument 3 has type ?.
- inet_ntoa warning: format '%s' expects type 'char *', but argument 2 has type 'int'
- inet_ntoa编译提示警告: 格式 ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat]
- 解决 format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘int *’
- warning: format ‘%s’ expects argument of type ‘char *’和warning: backslash and newline separated by
- DPDK中文-编译出错 expected __m128i but argument is type int
- expected 'float **' but argument is of type 'float (*)[5]'
- TypeError: argument of type 'int' is not iterable
- warning: non-variable type argument Int in type pattern scala.collection.mutable.WrappedArray[Int] i
- Argument of type '(Foo::)(int,int)' does not match 'void (*)(int,int)'以及静态函数问题
- 使用cuDNN5编译py-faster-rcnn错误:cudnn.hpp(126): error: argument of type "int" is incompatible ...
- [tensorflow]TypeError: Fetch argument .+ has invalid type
- warning: passing argument 2 of 'request_irq' from incompatible pointer type导致的中断申请失败和
- warning: passing argument 2 of 'request_irq' from incompatible pointer type导致的中断申请失败和
- Laravel控制器简单总结
- Effective C++学习_条款44:将与参数无关的代码抽离
- springmvc三种全局异常处理
- Unique Binary Search Trees II
- ExtJs Window 组件
- jni编译时出现:warning: format '%d' expects argument of type 'int', but argument 4 has
- [Android Pro] android 杀死进程的方法
- Can't create handler inside thread that has not called Looper.prepare()
- install python-pip
- 一说出口就被误解的离职原因,这样补救!
- 如何在 Git 里撤销(几乎)任何操作
- MVP好文章转载
- 做好一个人
- smack android集成问题记录