搭建Android应用开发环境
时间:2011-05-14 来源:Fallen Angel
1.安装Wine,本工具用于运行Windows下的应用程序
使用Ubuntu软件中心查找并安装1.2.2版本。
2.安装Source Insight3.5,该工具主要用于查看和编译
在命令行下运行:wine Si35Setup.exe,然后按提示完成安装,注意:双屏下安装时会自动注销。
3.安装SVN和GIT
使用Ubuntu软件中心查找并安装。
4.配置USB设备访问权限
Under GNU/linux systems (and specifically under Ubuntu systems), regular users can't directly access USB devices by default. The system needs to be configured to allow such access.
The recommended approach is to create a file /etc/udev/rules.d/51-android.rules (as the root user) and to copy the following lines in it. must be replaced by the actual username of the user who is authorized to access the phones over USB.
# adb protocol on passion (Nexus One)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", MODE="0600", OWNER="<username>"
# fastboot protocol on passion (Nexus One)
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", MODE="0600", OWNER="<username>"
# adb protocol on crespo (Nexus S)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e22", MODE="0600", OWNER="<username>"
# fastboot protocol on crespo (Nexus S)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e20", MODE="0600", OWNER="<username>"
5.安装eclipse、ADT、Android SDK、NDK
A.eclipse可使用MOTODEV_Studio_for_Android_2.1,已包含ADT;
B.可选安装一个功能比较强的文本编辑器插件:AnyEdit tool;
C.具体安装请看相关教程,比较简单,到此为止Android应用开发环境已经安装完成。
6.安装minicom和tftp(用于烧写程序)
A.mincom类似于windows的超级终端;
B.tftp用作烧写程序的服务器,分客户端和服务器。