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