由于adb是32位的,所以需要安装对于32位的支持库。
解决方案:
$ sudo apt-get install lib32stdc++6 lib32z1 lib32ncurses5 lib32bz2-1.0
简要分析:
网上给出的方法是
$ sudo apt-get install ia32-libs
但会出现如下信息
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
<span style="color:#FF0000;">lib32z1 lib32ncurses5 lib32bz2-1.0</span>
E: Package 'ia32-libs' has no installation candidate
既然ia32-libs已经被废弃,那么应该有取代的包。
阅读出错信息后,我准备安装这三个包
$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
但是在启动eclipse后,出现如下问题
[2014-06-19 14:47:45 - Test] /home/star/software/adt-bundle-linux-x86_64-20140321/sdk/build-tools/android-4.4.2/aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[2014-06-19 14:47:45 - appcompat_v7] /home/star/software/adt-bundle-linux-x86_64-20140321/sdk/build-tools/android-4.4.2/aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
安装
$ sudo apt-get install lib32stdc++6
参考
2、Ubuntu 14.04 X64安装Android SDK
---------------------------------------------
1、解决Android SDK Manager更新、下载速度慢
C:\Windows\System32\drivers\etc\hosts
203.208.46.146 www.google.com
74.125.113.121 developer.android.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
Ubuntusudo vim /etc/hosts
Android SDK Manager-->Tools-->Options-->Others-->Force https...