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

由于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...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值