我以前已经使用过这些命令将ADB设置为监听TCP/IP,但这次我很惊讶。问题在于它抛出的错误根本没有意义:
$ adb tcpip 5555
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: device not found
实际上,尝试将其置于USB模式下也无法执行,出现相同错误:
$ adb usb
error: device not found
仅供参考,adb 帮助文档中写道:
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
我在Android SDK中没有进行任何更改(也没有更新)。希望能得到帮助。
adb shell
,可能也会出现相同的错误。 - Adrian Taylor