2017-02-10 9 views

ответ

1

Там несколько способов печати журнала в андроиде хрома, и вы пытаетесь два протекающих путями:

1. The first way:  
//Add the head file 
#include <cutils/log.h> 
#define XLOGC(...) android_printLog(ANDROID_LOG_DEBUG, "Your Tags", __VA_ARGS__) 

//use the XLOGC to print the log 
XLOGC("Your log message"); 


2. The second way: 
//Add the head file 
#include "base/logging.h" 
LOG(INFO) << "Your log message";