clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
I had the same problem on Debian Buster. Installing the Debian package libncurses5 solved it for me:
$ sudo apt install libncurses5
ln -s /usr/lib/libncursesw.so.6 /usr/lib/libtinfo.so.5
libtinfo is not an Android API. You need to build that library for Android and include it in your APK.