Android SDK not recognizing debug-able device

前端 未结 19 1037

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/developin

19条回答
  •  自闭症患者
    2020-12-14 05:31

    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

    What solved my issue is the USB device permission. I found my answer here.

    What I did:

    $ sudo vi /etc/udev/rules.d/51-android.rules
    

    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"
    

    My device USB vendor:product is "0bb4:0cec". To find it out, use command >lsusb. Then I unplug/plug my phone. It was recognized.

提交回复
热议问题