include <jni.h>
include <string>
include <iostream>
include <android/log.h>
include <list>
define LOG_TAG "native-lib"
define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, VA_ARGS)
define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, VA_ARGS)
define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, VA_ARGS)
使用
LOGI("name=%s", name.c_str());
LOGE("name=%s", name.c_str());
网友评论