正确配置了ndk环境,然后之后需要在命令行调用ndk-build运行
调用ndk-build时报这个错:
error: format not a string literal and no format arguments [-Werror=format-security]
解决方法:
在对应项目的jni/Application.mk添加一句话
APP_CFLAGS += -Wno-error=format-security
意思就是忽视这个error
正确配置了ndk环境,然后之后需要在命令行调用ndk-build运行
调用ndk-build时报这个错:
error: format not a string literal and no format arguments [-Werror=format-security]
在对应项目的jni/Application.mk添加一句话
APP_CFLAGS += -Wno-error=format-security
意思就是忽视这个error