Install android-liblog by entering the following commands in the terminal:
sudo apt update sudo apt install android-liblog
Android NDK logger interfaces
liblog represents an interface to the volatile Android Logging system for NDK (Native) applications and libraries. Interfaces for either writing or reading logs. The log buffers are divided up in Main, System, Radio and Events sub-logs.