error: format not a string literal and no format arguments [-Werror=format-security]
解決方法:
在你的ndk目錄下修改build/core/default-build-commands.mk
TARGET_FORMAT_STRING_CFLAGS := -Wformat -Werror=format-security
爲
TARGET_FORMAT_STRING_CFLAGS := -Wformat #-Werror=format-security