LInux配置ANDROID环境
来源:互联网 发布:linux删除虚拟网卡 编辑:程序博客网 时间:2024/05/20 06:08
- 打开命令行终端Terminal, 进行第一次系统更新并安装开发必要的软件包
shawn@e014-anle-lnx:~$ sudo su# apt-get install aptitude# aptitude update# aptitude full-upgrade## aptitude -y install sysv-rc-conf subversion subversion-tools python-svn git-core git-svn binutils binutils-dev binutils-static libncurses5-dev libncursesw5-dev ncurses-term ncurses-hexedit g++ gcc automake1.9 dialog bison build-essential zlib1g-dev flex gperf libwxgtk2.6-dev libcurses-widgets-perl libcurses-perl libcurses-ui-perl libcurses-ruby libruby1.8 libsdl1.2-dev valgrind ncurses-dev libtool libx11-dev vim-gnome exuberant-ctags tree meld pbzip2 wget unrar unzip wmii dwm# exitexitshawn@e014-anle-lnx:~$
- 获取JDK1.5, Eclipse, Android SDK, repo,把下面几个文件copy到本地文件夹
jdk-1_5_0_22-linux-i586.bin
eclipse-linux.tar.tgz
android-sdk-linux.tar.tgz
repo - 安装JDK1.5
shawn@e014-anle-lnx:~$ sudo su# chmod 777 jdk-1_5_0_22-linux-i586.bin# ./jdk-1_5_0_22-linux-i586.bin# mv jdk1.5.0_22 /usr/local/# ln -s /usr/local/jdk1.5.0_22 /usr/local/jdk1.5# exitexitshawn@e014-anle-lnx:~$
- 创建Android工具目录 /home/android/, 并拷贝脚本repo到/home/android/bin
shawn@e014-anle-lnx:~$ cd /homeshawn@e014-anle-lnx:/home$ sudo mkdir androidshawn@e014-anle-lnx:/home$ sudo chmod 777 androidshawn@e014-anle-lnx:/home$ mkdir /home/android/binshawn@e014-anle-lnx:/home$ mv /home/shawn/repo /home/android/bin/shawn@e014-anle-lnx:/home$ chmod 777 /home/android/bin/repo
- 解压缩Eclipse到/home/android/eclipse/, Android SDK到/home/android/sdk/
shawn@e014-anle-lnx:/home$ tar xf /home/shawn/eclipse-linux.tar.tgz -C /home/android/shawn@e014-anle-lnx:/home$ tar xf /home/shawn/android-sdk-linux.tar.tgz -C /home/android/
- 配置环境变量
shawn@e014-anle-lnx:~$ sudo su# echo "PATH=/usr/local/jdk1.5/bin:/home/android/sdk/tools:/home/android/sdk/platform-tools:/home/android/bin:/home/android/eclipse:$PATHCLASSPATH=/usr/local/jdk1.5/lib:.JAVA_HOME=/usr/local/jdk1.5ANDROID_JAVA_HOME=$JAVA_HOMEGIT_SSH=sshexport PATH CLASSPATH JAVA_HOME ANDROID_JAVA_HOME GIT_SSH" >>/etc/bash.bashrc
- 验证是否安装配置成功, 重新打开一个命令行终端
shawn@e014-anle-lnx:~$ eclipse & ##可以启动eclipseshawn@e014-anle-lnx:~$ android & ##可以启动Android AVD Manager
- LInux配置ANDROID环境
- Linux配置Android环境。
- linux android 环境配置
- Linux Android环境配置
- ubuntu linux android 环境配置
- Linux配置android 反编译环境
- Linux git配置以及android环境配置
- [ android ] linux下 android环境配置!
- Linux下安装配置Android开发环境
- Linux下配置Android开发环境
- linux下android开发环境的配置
- Linux下安装配置Android开发环境
- linux 下配置Android开发环境
- Android基于Linux Eclipse开发环境配置
- Android之Linux开发环境配置
- Linux下安装配置Android开发环境
- linux下android开发环境的配置
- Linux下安装配置Android开发环境
- BSS段,数据段,代码段,堆内存和栈 研究
- Case when 与Update语句的使用
- (虚幻3游戏引擎)Unreal3的Flash移植演讲代码示例!
- php 获取日期(当天,前天,明天,本周,本月,本季度,本年)
- php读取zip文件中的图片,并动态更换div的背景图片
- LInux配置ANDROID环境
- 《CPlusPlusPrimer》第十二章二节编程源码——vocab功能的源码
- 关于Flash Player 11(Molehill)的3D引擎、例子、学习资料
- 取得trace 文件名字
- Glib事件源
- php中使用head进行二进制流输出,让用户下载PDF等附件的方法
- Android提高篇之listView点击button翻页功能实现
- ContextLoader-api
- log4net使用笔记(winform程序)