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

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

    Are you by any chance also using the app EasyTether while connected to your Mac? If you happen to use this app, you're in luck, because the solution is to call:

    sudo kextunload -v /System/Library/Extensions/EasyTetherUSBEthernet.kext
    

    from a terminal. I forget if you have to reboot or not.

    This will disable tethering, but you can now see your device via adb.

    To renable tethering once you're done debugging, use

    sudo kextload -v /System/Library/Extensions/EasyTetherUSBEthernet.kext
    

    Of course, if you're not using EasyTether, then hopefully someone else has an idea....

提交回复
热议问题