我正在构建https://github.com/substratum/template
的基础主题我在运行中遇到以下错误:
Build command failed.
Error while executing process /home/anubhav/Android/Sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/home/anubhav/AndroidStudioProjects/template/app/src/main/jni/Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-24 NDK_OUT=/home/anubhav/AndroidStudioProjects/template/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/home/anubhav/AndroidStudioProjects/template/app/build/intermediates/ndkBuild/debug/lib /home/anubhav/AndroidStudioProjects/template/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libLoadingProcess.so}
[armeabi-v7a] Compile thumb : LoadingProcess <= LoadingProcess.c
/home/anubhav/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
make: *** [/home/anubhav/AndroidStudioProjects/template/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/LoadingProcess/LoadingProcess.o] Error 127
我在Manjaro上运行Android Studio 3.0.1。我真的不知道还有什么信息要提供,所以如果需要,请提及。
答案 0 :(得分:1)
我在Debian Buster上遇到了同样的问题。安装Debian软件包'libncurses5'为我解决了这个问题。
答案 1 :(得分:0)
libtinfo不是Android API。您需要为Android构建该库并将其包含在APK中。
答案 2 :(得分:0)
ln -s /usr/lib/libncursesw.so.6 /usr/lib/libtinfo.so.5