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

ubuntu13下安装android 开发工具 ADT Bundle

2014-01-27 16:16 399 查看
在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就不会在出现编译问题。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: