我是新的Android开发,并在尝试运行我的实际设备上测试应用程序。我跟在http://developer.android.com/guide/developing/device.html (和相关链接),但在Android调试桥(ADB)无法识别连接的设备。
I'm new to Android development, and am attempting to run a test application on my actual device. I followed the instructions at http://developer.android.com/guide/developing/device.html (and related links), but the Android Debug Bridge (adb) doesn't recognize my connected device.
一些快速的背景信息,我运行WinXP,与Eclipse开发,以摩托罗拉Droid运行Android 2.1作为我的物理设备。
Some quick background info, I'm running WinXP, developing with Eclipse, with a Motorola Droid running Android 2.1 as my physical device.
我所采取的步骤概述:
在安装了Android SDK,下载所有需要的软件包。 已启用USB调试我的设备上。 在通过USB连接的设备,从SDK文件夹中安装驱动程序。我会停在这里(虽然我继续设置我的应用程序能够调试,能够在Eclipse),因为我在这一点上,我注意到一个问题。
I'll stop here (though I continued to setup my application to be debug-able in Eclipse), because I at this point I noticed a problem.
在这一点上运行SDK \工具\ ADB设备(至少,在我的理解),应连接列出我的设备。然而,运行此仅产生:
Running "sdk\tools\adb devices" at this point (at least, by my understanding), should list my device as connected. However, running this yields only:
连接的设备列表
我的设备识别出它是连接到在调试模式下的电脑,我的电脑识别设备。不过,我似乎无法获得SDK来识别它。我离开了我以前安装的Eclipse调试设备上的步骤,因为它似乎不相关的问题。如果要求我将囊括其中。
My device recognizes that it's connected to a computer in debug mode, and my computer recognizes the device. However, I can't seem to get the sdk to recognize it. I'll leave out the steps I used to setup Eclipse for debugging on a device, as it doesn't seem relevant to the problem. I'll include them if requested.
如果任何人有任何想法,我会非常AP preciate一些帮助。在此先感谢您的时间。
If anyone has any ideas, I'd greatly appreciate some assistance. Thanks in advance for your time.
我使用HTC的。日食在Ubuntu 12.04。我已经启用了USB调试。但是插上电源后,它不会让我的部署。它被认为是一个设备:???? ...没有权限
I am using HTC OneS. Eclipse on Ubuntu 12.04. I had the USB debugging enabled. But after plugged in, it doesn't let me deploy. It was recognized as a device: ????... no permissions
什么解决我的问题是,USB设备的许可。我发现我的答案here.
What solved my issue is the USB device permission. I found my answer here.
我所做的:
$ sudo vi /etc/udev/rules.d/51-android.rules
我在规则文件中添加此2号线:
I added this 2 lines in the rule file:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0cec", MODE="0666"
SUBSYSTEMS=="usb", SYSFS{product}=="Android Phone", MODE="0666"
我的设备的USB供应商:产品是0BB4:0cec。为了找到它,使用命令>的lsusb。 然后,我拔掉/插入我的手机。人们认识到。
My device USB vendor:product is "0bb4:0cec". To find it out, use command >lsusb. Then I unplug/plug my phone. It was recognized.