1

Hi I am building an C++ native library based on the android NDK tool. However, I couldn't figured out how to print log in the C++ file to Android logcat. here is what I have done.

I have follow this guide. to add the __android_log_print(ANDROID_LOG_INFO, "log", "hi logg");

include android/log.h

and

android {
defaultConfig {
    ndk {
        moduleName "modulename"
        ldLibs "log"
    }
}

the app is able to compile but there's no log printed. Can someone help me?

Community
  • 1
  • 1
  • This might be a silly question, but have you verified that the module is loaded and that the function that runs `__android_log_print()` is executed? – zenzelezz Aug 03 '15 at 09:17

0 Answers0