ubuntu13下安装android 开发工具 ADT Bundle

     在linux下安装android开发工具有两种方法,第一种方法是使用eclipse搭配ADT和android-sdk来构建开发工具。第二种方法是,直接下载ADT Bundle来进行开发。

     相对与来说,第二种方法会更加的方便一点,因为在下载的安装包中已含有了以下几个工具。

  • Eclipse + ADT plugin
  • Android SDK Tools
  • Android Platform-tools
  • The latest Android platform
  • The latest Android system image for the emulator
     所以文选用的第二个方法,搭建环境的步骤如下:

     一、在http://developer.android.com/sdk/index.html下下载ADT Bundle。由于我的机器是64位的,所以使用adt-bundle-linux-x86_64-20131030.zip。之后使用命令 sudo unzip -x adt-bundle-linux-x86_64-20131030.zip解压这个文件。

      二、由于使用的64位的操作系统,在使用开发工具的时候会出现

      错误 'Cannot run program "/home/uv/IDE/adt/sdk/platform-tools/adb": error=2, No such file or directory'  例如这样的错误,

       在sdk的platform-tools文件下,运行file adb 命令,出现

       adb: ELF32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamicallylinked (uses shared libs), for GNU/Linux 2.6.8, notstripped      

      提示,果断是由于没有32位兼容库的问题,所以根据提示运行命令

      sudo apt-get install lib32z1

      之后在platform-tools文件下运行./adb命令可能会出现

        adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory提示

      则运行命令 sudo apt-get install   lib32stdc++6

       运行./adb命令就不会在出现问题

      三、之后使用eclipse就不会在出现编译问题。

      

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值