Eclipse and Android: cannot debug on Samsung Galaxy S2 because not detected

前端 未结 5 987
眼角桃花
眼角桃花 2021-01-13 09:00

I am just starting to learn on Android development. I use Ubuntu 11.10 and Eclipse. I have installed the needed plugins from android development, and I have also write yet s

相关标签:
5条回答
  • 2021-01-13 09:30

    Enable USB Debugging on the device from the Settings -> Applications -> Development

    0 讨论(0)
  • 2021-01-13 09:30

    Try another USB cable

    If you have a possibility, check if it works with another device

    Localize your problem, make sure that it's something wrong with software (if it is)

    0 讨论(0)
  • 2021-01-13 09:45

    Execute the following command from a terminal

    $ echo "0x04e8" >> ~/.android/adb_usb.ini
    

    and restart adb using

    $ adb kill-server
    $ adb start-server
    

    check if the device is listed using adb devices

    0 讨论(0)
  • 2021-01-13 09:47

    Try Samsung kies, it delivers suitable ADB driver: http://www.samsung.com/uk/support/usefulsoftware/KIES/JSP

    With the right adb driver (from kies or elsewhere) it should work flawlessly

    EDIT: on linux: http://developer.android.com/tools/device.html

    If you're developing on Ubuntu Linux, you need to add a udev rules file that contains a USB configuration for each type of device you want to use for development. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by the ATTR{idVendor} property. For a list of vendor IDs, see USB Vendor IDs, below. To set up device detection on Ubuntu Linux: Log in as root and create this file: /etc/udev/rules.d/51-android.rules. Use this format to add each vendor to the file: SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"

    In this example, the vendor ID is for HTC. The MODE assignment specifies read/write permissions, and GROUP defines which Unix group owns the device node. Note: The rule syntax may vary slightly depending on your environment. Consult the udev documentation for your system as needed. For an overview of rule syntax, see this guide to writing udev rules. Now execute: chmod a+r /etc/udev/rules.d/51-android.rules

    0 讨论(0)
  • 2021-01-13 09:47

    I experienced the same issue on Mac OS X with Eclipse. Simply putting the phone in 'debug' mode (Settings -> Applications -> Development -> USB debugging) did not solve the issue. I have to do below in the command line to solve the issue.

    sudo adb kill-server
    sudo adb start-server
    
    0 讨论(0)
提交回复
热议问题