我是一名 Linux n00b,试图在 Eclipse 中设置我的开发环境。我安装了 Eclipse 和 Android SDK,但是当我启动 Eclipse 或尝试运行 ./aapt 或 ./adb 时出现一些错误。
jason@ubuntu:~/usr/android-sdk-linux_x86/platform-tools$ ./aapt
./aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
jason@ubuntu:~/usr/android-sdk-linux_x86/platform-tools$ ./adb
./adb: error while loading shared libraries: libncurses.so.5: wrong ELF class: ELFCLASS64
那个 ELF 类错误让我觉得我安装了错误的软件版本,但我不记得被要求在 x86 和 x86-64 之间进行选择。
jason@ubuntu:~/usr/android-sdk-linux_x86$ echo $MACHTYPE
x86_64-pc-linux-gnu
最佳答案
你确定你关注了this完全指导?你有安装 ia32-libs 吗? 试试这个:
sudo apt-get install ia32-libs
关于Ubuntu 11.04 上的 Android/Eclipse 安装 - aapt 和 adb 无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7056914/