正確配置了ndk環(huán)境,然后之后需要在命令行調(diào)用ndk-build運行
調(diào)用ndk-build時報這個錯:
error: format not a string literal and no format arguments [-Werror=format-security]
解決方法:
在對應(yīng)項目的jni/Application.mk添加一句話
APP_CFLAGS += -Wno-error=format-security
意思就是忽視這個error