如何在ubuntu14.04下配置安卓开发环境
1、下载64位安卓adt集成开发环境,(根据自己的系统版本选择)
百度搜索android进入官网下载adt工具。
2、解压到/usr/share/目录下
右键--提取到此--会得到解压后的adt-bundle-linux-x86_64-20140321文件夹
$ cd 下载目录
$sudo cp -R adt-bundle-linux-x86_64-20140321 /usr/share
3、修改adt目录文件权限
$cd /usr/share
$sudo chmod -R 777 adt-bundle-linux-x86_64-20140321
4、安装openjdk-7-jdk
$sudo apt-get install openjdk-7-jdk
5、安装配置环境所需依赖包(或者安装wps通过sudo apt-get install -f修复依赖间接配置环境)
$sudo apt-get install 一点一点安装吧或者安装wps间接配置环境
gcc-4.8-base:i386 gcc-4.9-base:i386 libavahi-client3:i386
libavahi-common-data:i386 libavahi-common3:i386 libc6:i386
libcgmanager0:i386 libcomerr2:i386 libcups2:i386 libdbus-1-3:i386
libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386
libelf1:i386 libexpat1:i386 libffi6:i386 libfontconfig1:i386
libfreetype6:i386 libgcc1:i386 libgcrypt11:i386 libgl1-mesa-dri:i386
libgl1-mesa-glx:i386 libglapi-mesa:i386 libglib2.0-0:i386 libglu1-mesa:i386
libgnutls26:i386 libgpg-error0:i386 libgssapi-krb5-2:i386 libice6:i386
libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386
libllvm3.4:i386 libnih-dbus1:i386 libnih1:i386 libp11-kit0:i386
libpciaccess0:i386 libpcre3:i386 libpng12-0:i386 libselinux1:i386
libsm6:i386 libstdc++6:i386 libtasn1-6:i386 libtinfo5:i386
libtxc-dxtn-s2tc0:i386 libudev1:i386 libuuid1:i386 libx11-6:i386
libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386
libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386 libxcb1:i386
libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386
libxrender1:i386 libxshmfence1:i386 libxxf86vm1:i386 zlib1g:i386
6、再次创建模拟器启动试试可以了。
1)、双击/usr/share/adt-bundle-linux-x86_64-20140321/ eclipse/eclipse 打开adt
2)、 工具栏 window--Android Virtual Device Manager--New 根据你的需要填写 模拟器配置然后确定就会创建一个新的安卓模拟器。
3)、点击需要的安卓模拟器 start--launch 启动模拟器。
注:如果还是遇到找不到adb这些提示 进入/usr/share/adt-bundle-linux-x86_64-20140321/sdk/platform-tools 目录 $sudo chmod +x adb
http://jingyan.baidu.com/article/4d58d541dd939f9dd5e9c010.html