在Android JNI中调用__android_log_print,
const char *pathur = env->GetStringUTFChars(path,nullptr);
__android_log_print(ANDROID_LOG_DEBUG, "Test", pathur);
出现了error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
改为
__android_log_print(ANDROID_LOG_DEBUG, "Test", “%s”, path);
就不会出现错误