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

后端 未结 16 1041
梦如初夏
梦如初夏 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:39

    restart the adb server works for me, in emulator, vmwware and virtual

    adb kill-server
    adb start-server
    

    if you´re using a virtual machine, make sure you have an IP assigned with:

    Alt + 1
    type: netcfg
    

    to go back:

    Alt + 7
    

    if you have:

     eth0: DOWN 0.0.0.0/XX
    

    change your configuration to:

    NAT or BRIDGE
    

    Restart the virtual machine and server, and tried again.

    if you´re using a phone or tablet:

    • unplug your device

    • wait a moment and plug it again

    • and restart the adb server

    Hope this help you

提交回复
热议问题