error undefined reference to '__android_log_print
配置 Android.mk文件 输入 LOCAL_LDLIBS := -llog 打印日志库
注意:LOCAL_LDLIBS要写在MODULE前面(也可能别的前面)就生效了
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_LDLIBS := -llog
LOCAL_MODULE := ccalljava
LOCAL_SRC_FILES := CCallJava.c
include $(BUILD_SHARED_LIBRARY)
来源:oschina
链接:https://my.oschina.net/u/4290180/blog/4308244