1:在源程序中添加头文件
#include <cutils/log.h>
2:在Android.mk中添加
LOCAL_SHARED_LIBRARIES := \ libutils \ libbinder \ libhardware \