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

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

    make sure you have same / higher API level installed on SDK packages with your devices.

    example :

    I have Android 2.3.4 on my Xperia Play. ADB wouldn't detect my device if theres only API 10 (Android 2.3.3) installed on my Mac. When i installed SDK 11 (Android 3.0) -- since I didn't found any SDK package for 2.3.4, the ADB working fine.

    hope this help you.

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

    0 讨论(0)
  • 2021-01-30 01:44

    I was having this problem. It turns out my fix was to change the USB cable I was connecting with. I switched back to using the cable that came with the phone and it worked.

    Using Samsung Galaxy Player and Samsung micro USB.

    Yes. This is incredibly dumb.

    0 讨论(0)
  • 2021-01-30 01:46

    I had Xamarin installed and tried to use Unity. Basically in any case you have to kill any application that might be talking to your device through ADB

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