如何使用 ADB 通过 TCP 连接到 Android? [英] How can I connect to Android with ADB over TCP?

查看:43
本文介绍了如何使用 ADB 通过 TCP 连接到 Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Motorola Droid 上调试应用程序,但遇到了一些困难通过 USB 连接到设备.我的开发服务器是在 Hyper-V 中运行的 Windows 7 64 位 VM,等等我无法通过来宾或主机的 USB 直接连接.

I am attempting to debug an application on a Motorola Droid, but I am having some difficulty connecting to the device via USB. My development server is a Windows 7 64-bit VM running in Hyper-V, and so I cannot connect directly via USB in the guest or from the host.

我安装了几个不同的 USB-over-TCP 解决方案,但连接似乎有问题,因为 ADB monitor 反复报告devicemonitor 无法启动监控".有没有办法使用网络而不是 USB 连接或其他可行的选项直接从开发机器上的客户端连接到设备上的守护程序?

I installed a couple of different USB-over-TCP solutions, but the connection appears to have issues since the ADB monitor reports "devicemonitor failed to start monitoring" repeatedly. Is there a way to connect directly from the client on the development machine to the daemon on the device using the network instead of the USB connection or possibly another viable options?

推荐答案

在最终放弃通过 TCP 直接连接到设备的可能性之后,我最终让 Eltima USB 转以太网软件工作.我几乎已经决定不可能仅通过模拟器连接到网络上的设备.

I ended up getting the Eltima USB to Ethernet software working after finally giving up on the possibility of a direct to device connection over TCP. I have pretty much decided that it is not possible to connect to a device across the network only an emulator.

这篇关于如何使用 ADB 通过 TCP 连接到 Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆