undefined reference to '__android_log_print'解决方案

1:在源程序中添加头文件

#include <cutils/log.h>

2:在Android.mk中添加

LOCAL_SHARED_LIBRARIES := 
        libutils 
        libbinder 
        libhardware 
原文地址:https://www.cnblogs.com/jiuyueguang/p/3183875.html