众所周知,adb是32位程序,因此在debian下运行adb需要32位库文件。
当配置好adb的系统路径之后,使用terminal输入adb可能会弹出以下错误:
adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
这时候,我们就应该知道需要装上32位库文件:
apt-get install lib32ncurses5 lib32stdc++6
但是,装好之后启动android要运行时,可能会出现以下错误:
aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
这时候,我们还需要装上32位库文件:
apt-get install lib32z1
重新启动,成功。