12.04 – Android SDK遇到ADB问题

所以,我安装了Android SDK,Eclipse和ADT.在设置ADT后第一次启动Eclipse时,会弹出以下错误:

[2012-05-29 12:11:06 - adb] /home/drsmith/Downloads/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-05-29 12:11:06 - adb] 'adb version' failed!
/home/drsmith/Downloads/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-05-29 12:11:06 - adb] Failed to parse the output of 'adb version':
Standard Output was:

Error Output was:
/home/drsmith/Downloads/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

[2012-05-29 12:11:06 - adb] /home/drsmith/Downloads/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-05-29 12:11:06 - adb] 'adb version' failed!
/home/drsmith/Downloads/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-05-29 12:11:06 - adb] Failed to parse the output of 'adb version':
Standard Output was:

Error Output was:
/home/drsmith/Downloads/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

我不太确定这是怎么回事.感觉很奇怪,那里有一个丢失的图书馆.我正在使用Ubuntu 12.04.作为Android开发者,没有adb是一个相当大的打击.我该如何解决?

解决方法:

Android SDK平台工具需要ia32-libs,它本身就是一个很大的库包:

sudo apt-get install ia32-libs

更新:

以下是关于如何安装Android SDK库依赖关系的latest instructions from Google

If you are running a 64-bit distribution on your development machine, you need to install additional packages first. For Ubuntu 13.10 (Saucy Salamander) and above, install the libncurses5:i386, libstdc++6:i386, and zlib1g:i386 packages using apt-get:

06001

For earlier versions of Ubuntu, install the ia32-libs package using apt-get:

06002

上一篇:软件推荐 – Android开发有哪些IDE?


下一篇:在从源代码编译Python之前,我应该安装哪些软件包/库?