JNI 调试打印信息

Android.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := hello-jni
LOCAL_SRC_FILES := hello-jni.c
LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog

include $(BUILD_SHARED_LIBRARY) 

JNI 文件夹下  hello-jni.c

#include <android/log.h>

__android_log_print(ANDROID_LOG_INFO, "Hello", "size int -----   ---");

你可能感兴趣的:(jni)