Android SDK not recognizing debug-able device

前端 未结 19 978

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:26

    None of these solutions worked for me!

    The device driver wasn't installing properly and i had to reboot my computer while holding F8 and turn off forced device signatures.

    0 讨论(0)
  • 2020-12-14 05:28

    Put the phone in mass storage mode. This took me a day and half.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-14 05:34

    What usually works for me:

    • Unplug device
    • Run ./adb wait-for-device in terminal in your android-sdk platform-tools
    • Connect device
    • Turn on device

    Every time one of my devices doesn't read, this seems to fix the problem.
    An alternative is to repeat all those above steps, but don't disconnect the device (i.e. turn it off, run the command, turn it on).

    If that doesn't work, another thing that I found that works for the older devices I use (2.1 update 1 and 2.3) is to unplug the usb, turn off usb debugging, turn back on usb debugging, and reconnect.

    0 讨论(0)
  • 2020-12-14 05:37

    I am using an HTC, so it may be different, but for me i have to sync the device with the pc before it will recognize the phone. When its ready, a notification pops saying that the device is attached for debugging.

    Also, you need to mark your app as debuggable if you haven't already done that as explained here

    0 讨论(0)
  • 2020-12-14 05:38

    When I had this issue, I figured out that my phone's USB connection was set to media sync mode. When I switched it to mass storage mode, the hello world program loaded right up. I did this by dragging down the USB icon in the top tool bar of the phone's home page.

    0 讨论(0)
提交回复
热议问题