【玩转Ubuntu】02. Ubuntu上搭建Android开发环境
一. 基本环境搭建
1.官网http://developer.android.com/sdk/index.html ,下载adt-bundle-linux-x86_64-20130729.zip
2. 解压sdk
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft$ unzip adt-bundle-linux-x86_64-20130729.zip
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft$ ls -al
总用量 1098596
drwxrwxr-x 6 bixiaopeng bixiaopeng 4096 8月 21 11:48 .
drwxr-xr-x 26 bixiaopeng bixiaopeng 4096 8月 21 13:06 ..
drwxr-x--- 4 bixiaopeng bixiaopeng 4096 7月 29 15:23 adt-bundle-linux-x86_64-20130729
-rw-rw-r-- 1 bixiaopeng bixiaopeng 458006784 8月 20 20:59 adt-bundle-linux-x86_64-20130729.zip
3.配置环境变量
vim ~/.bashrc  把下面这些环境变量加进去
 export ANDROID_SDK=/home/bixiaopeng/soft/adt-bundle-linux-x86_64-20130729/sdkexport PATH=$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools:$PATH
4.测试一下
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft$ adb shell
error: device not found
返回以上信息就表明你配置成功了
二. 使用android提供的eclipse
使用android提供的绑定ADT的eclipse开发,这样就不用在eclipse里安装ADT插件了
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft/adt-bundle-linux-x86_64-20130729$ ls
eclipse sdk
三. 使用Android Studio
1. 下载地址:http://developer.android.com/sdk/installing/studio.html
 我下载的是: Android Studio v0.2.xfor Linux
2. 下载下来后怎么样打开Android Studio呢?
 #  到android-studio/bin目录下执行studio.sh
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft$ cd android-studio/bin
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft/android-studio/bin$ ls -al
总用量 128
drwxr-x--- 2 bixiaopeng bixiaopeng 4096 8月 21 13:24 .
drwxr-x--- 7 bixiaopeng bixiaopeng 4096 7月 12 00:27 ..
-rw-r----- 1 bixiaopeng bixiaopeng 136 7月 11 23:48 appletviewer.policy
-rwxr-x--- 1 bixiaopeng bixiaopeng 22791 7月 11 23:48 fsnotifier
-rwxr-x--- 1 bixiaopeng bixiaopeng 29155 7月 11 23:48 fsnotifier64
-rw-r----- 1 bixiaopeng bixiaopeng 4176 7月 11 23:48 idea.png
-rw-r----- 1 bixiaopeng bixiaopeng 6913 7月 11 23:48 idea.properties
-rwxr-x--- 1 bixiaopeng bixiaopeng 281 7月 11 23:48 inspect.sh
-rw-r----- 1 bixiaopeng bixiaopeng 8531 7月 11 23:48 libbreakgen64.so
-rw-r----- 1 bixiaopeng bixiaopeng 6807 7月 11 23:48 libbreakgen.so
-rw-rw-r-- 1 bixiaopeng bixiaopeng 0 8月 21 13:24 libpeerconnection.log
-rw-r----- 1 bixiaopeng bixiaopeng 2275 7月 11 23:48 log.xml
-rw-r----- 1 bixiaopeng bixiaopeng 282 7月 11 23:48 studio64.vmoptions
-rwxr-x--- 1 bixiaopeng bixiaopeng 6505 7月 11 23:48 studio.sh
-rw-r----- 1 bixiaopeng bixiaopeng 290 7月 11 23:48 studio.vmoptions
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft/android-studio/bin$ sh studio.sh
提示:JDK一定要用1.6的,第一次打开的时候会让你指定JDK1.6的路径
3.配置Android Studio环境变量
#查看路径
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft/android-studio/bin$ pwd
/home/bixiaopeng/soft/android-studio/bin
#编辑.bashrc
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft/android-studio/bin$ vim ~/.bashrc
#在底部增加下面的配置
export ANDROID_STUDIO=/home/bixiaopeng/soft/android-studio/bin
export PATH=${ANDROID_STUDIO}:$PATH
#让配置立即生效
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~$ source ~/.bashrc
#在任意路径下都可以直接打开studio
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~/soft/android-studio/bin$ cd ~
bixiaopeng@bixiaopeng-To-be-filled-by-O-E-M:~$ studio.sh
【玩转Ubuntu】02. Ubuntu上搭建Android开发环境的更多相关文章
- 如何在Windows上搭建Android开发环境
		
Android开发越来越火,许多小伙伴们纷纷学习Android开发,学习Android开发首要任务是搭建Android开发环境,由于大家 主要实在Windows 上开发Android,下面就详细给大家 ...
 - 【转】在MyEclipse 8.6上搭建Android开发环境
		
内容导航 第 1 页:基本环境准备 第 2 页:下载Android SDK 第 3 页:配置SDK环境变量 第 4 页:给MyEclipse安装ADT插件 第 5 页:配置MyEclipse 第 6 ...
 - Windows上搭建android开发环境
		
在搭建android开发环境时需要四部分内容,框架如下 其中Java SDK和Eclipse在java4android中有过介绍,重点介绍ADT和Android SDK的安装. 安装Android S ...
 - ubuntu14.04上搭建android开发环境
		
这几天心血来潮,想在ubuntu上写写android软件.所以就上网找些资料在ubuntu上搭建android环境.结果要么时不完整的,要么就是过时的. 所以我把我搭建android环境的过程写下了, ...
 - Ubuntu 14.04下搭建 Android 开发环境(1) -JDK安装
		
1.下载最新的jdk安装,地址:http://www.oracle.com/technetwork/java/javase/downloads/ 2.解压jdk-8u20-linux-x64.gz,我 ...
 - 【转】在NetBeans上搭建Android SDK环境
		
本文将介绍在NetBeans 6.8上搭建Android SDK环境,目前Android在Netbeans上进行开发需要借助nbandroid的平台插件. 我们刚刚介绍过<MyEclipse上搭 ...
 - 在Eclipse下搭建Android开发环境教程
		
我们昨天向各位介绍了<在NetBeans上搭建Android SDK环境>,前不久也介绍过<在MyEclipse 8.6上搭建Android开发环境>, 都受到了读者的欢迎.但 ...
 - 【转】在Eclipse下搭建Android开发环境教程
		
本文将全程演示Android开发环境的搭建过程,无需配置环境变量.所有软件都是写该文章时最新版本,希望大家喜欢. 一 相关下载 三 Eclipse配置 (1)Java JDK下载 1 安装andr ...
 - OK335xS Ubuntu 12.04.1 版本 Android 开发环境搭建
		
/******************************************************************************************** * OK33 ...
 
随机推荐
- QListWidget与QTableWidget的使用以及样式设置
			
QListWidget和QTableWidget的使用和属性,QTableWidget和QListWidget样式表的设置,滚动条的样式设置 一.QListWidget的使用 //一.QListWid ...
 - inno setup 跳过(Welcome)欢迎界面
			
原文 http://zwkufo.blog.163.com/blog/static/25882512010816049549/ 在InnoSetup中,我们很容易用 function ShouldSk ...
 - 【C++第二课】---C到C++的函数升级
			
C++中对C语言在函数使用方面做了很大的升级 一﹑内联函数 1.C++中推荐使用内联函数来替代宏片段代码 2.C++中使用关键字inline声明内联函数 例如: inline int func(int ...
 - JIRA官方:JIRA源代码集成
			
防火墙后的Git 使用Atlassian Stash创建和管理Git存储库,设置细粒度的权限并在代码上协作.这一切—安全.快速.可靠,更重要的是,可以部署在防火墙后面.JIRA问题关键字自动将JIRA ...
 - Windows上安装Xampp后通过命令行进入MariaDB
			
题外话:读<MYSQL必知必会>,书中让我找个数据库服务器练手,我就去下了个Xampp,由于看的08年网易上的动态网站开发,那个时候Xampp中的m代表MYSQL,后来通过命令行进入MYS ...
 - 2.2.2  胸腰差和胸臀差的应用_米人NOONE_新浪博客
			
2.2.2 胸腰差和胸臀差的应用_米人NOONE_新浪博客 腰差和胸臀差的应用(2009-06-16 19:24:57)转载▼标签:校园 前面已经对这两个概念作了简单的讲解.这两个概 ...
 - HDOJ 4417 - Super Mario 线段树or树状数组离线处理..
			
题意: 同上 题解: 抓着这题作死的搞~~是因为今天练习赛的一道题.SPOJ KQUERY.直到我用最后一种树状数组通过了HDOJ这题后..交SPOJ的才没超时..看排名...时间能排到11名了..有 ...
 - Centos下需安装Pytnon,Pytharm
			
1.在www.python.org/PIPY/下载python3.4.2.tar.gz 2.在安装之前最好先安装相关的开发工具 # yum groupinstall develtools # yum ...
 - InterLockedIncrement and InterLockedDecrement函数原理
			
实现数的原子性加减. 什么是原子性的加减呢? 举个样例:假设一个变量 Long value =0; 首先说一下正常情况下的加减操作:value+=1. 1:系统从Value的空间取出值,并动态生成一个 ...
 - 引用枚举进行对比时  enum需强制转换
			
枚举类 public enum MailRead { /// <summary> /// 未读 /// </summary> UNREAD=0, /// <summary ...