Android开发:如何将Eclipse应用程序下载到智能机?? (开发环境为linux操作系统)

1,首先要查看只能机的idVendor,在http://developer.android.com/tools/device.html这里可以查到。我的是华为的智能机U9200,所以idVendor=12d1

2,# cd /etc/udev/rules.d/,进到这个文件夹下,然后 #gedit 51-android.rules,即新建一个名字为51-android.rules的文件,然后在里面输入:

SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666", GROUP="plugdev" ,SYMLINK+="android_adb"

(参考http://developer.android.com/tools/device.html,以及http://210.38.138.176/archiver/?tid-36.html)

   注意,这里将idVendor设成自己的智能机对应的即可。

然后保存。

3,修改权限。#chmod a+r /etc/udev/rules.d/51-android.rules

4,点击Eclipse的run configuration,选择target,点中manual,然后就可以了。

注,windows下貌似只安一个usbdriver就可以了。

 

补充:如果是windows下的开发环境,需要安装两个东西。

一个是google的usbdriver,http://developer.android.com/sdk/win-usb.html#top可以通过下载离线安装包,点击download google usbdriver。或者用sdk在线下载的方法。

安装方法如下:

Windows XP

To install the Android USB driver on Windows XP for the first time:

  1. Connect your Android-powered device to your computer's USB port. Windows will detect the device and launch the Hardware Update Wizard.
  2. Select Install from a list or specific location and click Next.
  3. Select Search for the best driver in these locations; un-check Search removable media; and check Include this location in the search.
  4. Click Browse and locate the USB driver folder. (The Google USB Driver is located in <sdk>\extras\google\usb_driver\.)
  5. Click Next to install the driver.

Or, to upgrade an existing Android USB driver on Windows XP with the new driver:

  1. Connect your Android-powered device to your computer's USB port.
  2. Right-click on My Computer from your desktop or Windows Explorer, and select Manage.
  3. Select Device Manager in the left pane.
  4. Locate and expand Android Phone in the right pane.
  5. Right-click Android Composite ADB Interface and select Update Driver. This will launch the Hardware Update Wizard.
  6. Select Install from a list or specific location and click Next.
  7. Select Search for the best driver in these locations; un-check Search removable media; and check Include this location in the search.
  8. Click Browse and locate the USB driver folder. (The Google USB Driver is located in <sdk>\extras\google\usb_driver\.)
  9. Click Next to upgrade the driver.

 

另一个是各个厂家的手机驱动,列表在这里:http://developer.android.com/tools/extras/oem-usb.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值