今天心血來潮的要拿我的HERO來連線丟軟體,結果在 Eclipse 上是無法連接,而在Command Line 下 adb devices 結果他彈出
List of devices
attached |
的錯誤訊息
後來在網路上找到一個地方有寫...不過是在 Android的官方網站的小小地方......(原文連結)
If you're developing on Ubuntu Linux, you need to add a rules file
that contains a USB configuration for each type of device you want to
use for
development. Each device manufacturer uses a different vendor ID. The
example rules files below show how to add an entry for a single vendor
ID
(the HTC vendor ID). In order to support more devices, you will need
additional
lines of the same format that provide a different value for the
SYSFS{idVendor} property. For other IDs, see the table of USB
Vendor IDs, below.
You can verify that your device is connected by executing If using Eclipse, select run or debug as usual. You will be presented with a Device Chooser dialog that lists the available emulator(s) and connected device(s). Select the device to install and run the application there. If using the Android
Debug Bridge (adb),
you can issue commands with the USB Vendor IDsThis table provides a reference to the vendor IDs needed in order to
add
device support on Linux. The USB Vendor ID is the value given to the
|
改完後..記得重開機...如果還是不能連接
請下
# adb kill-server && sudo adb devices