连接到Eclipse的Andr​​oid模拟器在不同的机器上模拟器、连接到、不同、机器上

2023-09-04 06:47:16 作者:浮夸

似乎无法找到以下信息,虽然我是pretty的肯定,这应该是可能的: 我运行在一台机器A.我正在开发的另一个B机中,我使用的Eclipse的Andr​​oid模拟器。

Can't seem to find the following information although I'm pretty sure this should be possible: I'm running an Android emulator on a machine A. I'm developing on another machine B in which I'm using Eclipse.

现在,当我切换到DDMS透视图在Eclipse中,我想从计算机A上的仿真器显示在设备标签。

Now when I switch to the DDMS perspective in Eclipse, I want the emulator from machine A to show up in the devices tab.

的原因是,该仿真器是相当缓慢的,它看起来像运行开发和仿真器在不同的机器可能是一个解决方案。

The reason is, that the emulator is quite slow and it looks like running development and emulator on different machines might be a solution.

由于仿真器的特定端口上运行,我是pretty的肯定,我只需要弄清楚如何让Eclipse到哪里寻找模拟器。

Since the emulator runs on a specific port, I'm pretty sure I just need to figure out how to tell eclipse where to look for emulators.

感谢您的任何提示

推荐答案

您可以告诉亚行连接到设备监听的IP地址和TCP端口。该设备应该再出现在月食。所以调试机器是容易的。

You can tell adb to connect to a device listening on an IP address and TCP port. That device should then show up in eclipse. So the debug machine is easy.

仿真器的机器可能更难。该仿真器监听本地端口的TCP连接。 IIRC已确定,有没有命令行开关,使其监听外部接口,但仔细检查。所以,你可能需要修改和重新编译仿真器,或者使用某种形式的端口转发器的主机计算机上。 SSH的处理方式,对于你,虽然我敢肯定还有其他的工具,而如果这是没有必要的加密开销。

The emulator machine may be harder. The emulator is listening for TCP connection on a local port. IIRC it has been established that there's no command line switch to make it listen on an external interface, though double check that. So you might have to modify and recompile the emulator, or use some kind of port-forwarder on the hosting machine. ssh might handle that for you though I'm sure there are other tools without the encryption overhead if that's not needed.