use __android_log_print() instead. You have to include header . Sample Example. __android_log_print(ANDROID_LOG_DEBUG ...
stackoverflow.com