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
, andzlib1g:i386
packages usingapt-get
:06001
For earlier versions of Ubuntu, install the
ia32-libs
package usingapt-get
:06002
标签:android,eclipse,development,12-04 来源: https://codeday.me/bug/20190807/1613040.html