您的位置:首页 > 移动开发 > Android开发

64位Ubuntu14.04安装Android开发环境

2014-06-19 15:10 711 查看
由于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


参考

1、怎样打开64位Ubuntu的32位支持功能

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
Ubuntu
sudo
vim /etc/hosts

Android
SDK Manager-->Tools-->Options-->Others-->Force https...
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  64位 Ubuntu Android SDK ADB