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位的操作系统,在使用开发工具的时候会出现
在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就不会在出现编译问题。
相对与来说,第二种方法会更加的方便一点,因为在下载的安装包中已含有了以下几个工具。
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就不会在出现编译问题。
相关文章推荐
- ubuntu 安装android+eclipse+adt 开发环境 sdk
- Android开发-ADT Bundle安装
- mac安装开发android集成包——adt-bundle
- ubuntu安装Android开发环境配置exit code = 13错误安装中文输入法及调整屏幕大小及添加快捷键到右边栏
- 安装Android sdk+jdk+Eclipse+Adt开发工具
- Android之捆绑开发工具adt-bundle的下载
- Android开发-ADT Bundle安装
- ubuntu 14.04 64位使用google官方android开发集成工具adt-64位无法使用adb
- Eclipse安装android开发插件,及ADT-bundle介绍,并输出HelloWorld
- Android开发环境搭建(省事的话就直接安装ADT-Bundle)
- 我学ubuntu - ubuntu下搭建android开发环境(从JDK到ADT插件安装全过程)
- ubuntu下android开发工具的安装
- Android开发工具之adt-bundle-windows
- android开发1--在ubuntu上安装jdk1.5、eclipse、ADT和android sdk
- ubuntu12下安装配置sdk,adt的android开发环境
- Android安装 sdk+jdk+Eclipse+Adt开发工具
- 安装Android sdk+jdk+Eclipse+Adt开发工具