OS: Kali linux Compile toolchian: arm-none-linux-gnueabi# arm-none-linux-gnueabi-gcc hook.c arm-linux-gcc 交叉编译报错:error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory这个问题就是你64位的操作系统没有32位的类库,而android的SDK是要32位支持的,如果没装就只能是报上面的错!解决:# sudo apt-get update# sudo apt-get install lib32z1这时候编译:arm-none-linux-gnueabi-gcc hook.c 通过