Can't find android device using “adb devices” command

后端 未结 16 1040
梦如初夏
梦如初夏 2021-01-30 00:49

I am developing Android application on macOS and my application runs well on the emulator. I want to run it on the device, but when I run adb dev

16条回答
  •  迷失自我
    2021-01-30 01:22

    If using adb devices on Mac OS X no device is displayed and, of course, you have enabled the USB debugging on your device (see http://developer.android.com/tools/device.html), then try with:

    $ android update adb
    adb has been updated. You must restart adb with the following commands
        adb kill-server
        adb start-server
    

    Then:

    $ adb kill-server
    $ adb start-server
    * daemon not running. starting it now on port ... *
    * daemon started successfully *
    

    And finally:

    $ adb devices
    List of devices attached 
    ......  device
    

    Your device should be now in the list.

提交回复
热议问题