error: format not a string literal and no format arguments [-Werror=format-security]

You can put this in your Application.mk to disable treating those warnings as errors:
APP_CFLAGS += -Wno-error=format-security

There are more solutions for the same problem in this thread: http://www.cocos2d-x.org/boards/6/topics/32437?r=33260#message-33260

 
 
原文地址:https://www.cnblogs.com/savagemorgan/p/3627391.html