转载:https://blog.csdn.net/skill_cheng/article/details/44274603
具体错误是error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
1.我们使用命令: apt-file search 来查找,首先安装,按如下命令:
sudo
apt-get
install
apt-
file
2.安装完以后系统会提示你update,如果没有提示,在终端输入如下命令:
sudo
apt-
file
update
3.对libz进行查找
apt-
file
search libz.so.1
我查找的内容是lib32z1: /usr/lib32/libz.so.1 lib32z1: /usr/lib32/libz.so.1.2.8 libx32z1: /usr/libx32/libz.so.1 libx32z1: /usr/libx32/libz.so.1.2.8 zlib1g: /lib/x86_64-linux-gnu/libz.so.1 zlib1g: /lib/x86_64-linux-gnu/libz.so.1.2.8
4.对libz进行安装
sudo apt-get install lib32z1
5.把android项目clean一下就行.