标签:code text string hello efi 调试 usr job ndk
#include <android/log.h>
LOCAL_LDLIBS+= -L$(SYSROOT)/usr/lib -llog
打印级别ANDROID_LOG_INFO,ANDROID_LOG_DEBUG,ANDROID_LOG_WARN,ANDROID_LOG_WARN,ANDROID_LOG_FATAL
#define LOG_TAG "C_TAG" #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
#include "com_example_yuany_demo_Demo.h" #include "android/log.h" #define LOG_TAG "C_TAG" #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) JNIEXPORT jstring JNICALL Java_com_example_yuany_demo_Demo_sayHello (JNIEnv *env, jclass jobj) { LOGD("hello.length"); return env->NewStringUTF("JNI HHHHHHHH"); }
标签:code text string hello efi 调试 usr job ndk
原文地址:https://www.cnblogs.com/scarecrow-blog/p/9144195.html