在另一台机器上连接android模拟器 [英] Connecting android emulator in another machine

查看:228
本文介绍了在另一台机器上连接android模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要24小时测试我的android应用程序,并且我有3个ubuntu框来做。
我想将开发系统(MOTODEV Studio 1.3)连接到远程设备。

I need to test my android app 24h day and I have 3 ubuntu boxes to do it. I would like to connect my development system (MOTODEV Studio 1.3) to a Remote Device.

好吧,该界面向我询问有关机器和端口的ip的信息

Well, the interface ask me about ip for machine and port to connect to.

但事实并非如此。我发现远程的adb服务器似乎不监听外部端口,仅监听内部环回,从而使机器之间无法进行连接。

But it doesn't. I found that the adb sever on remote seems not to listen to external ports, only internal loopback, making connections machine-machine impossible.

这是真的吗?如果是这样,为什么在设备上有一节可以连接到MOTODEV Studio上的Android远程设备?

Could it be true? If so, why there is a section on Device to connect to Android Remote Device on MOTODEV Studio?

我在这篇文章中找到了一个解释和解决方法( http://rxwen.blogspot.com/2009/11/adb- for-remote-connections.html ),但看起来很复杂,并且post的链接不起作用,所以我很困惑是否有解决方案。

I've found an explanation and a workaround in this post (http://rxwen.blogspot.com/2009/11/adb-for-remote-connections.html) but it seems complicated and post's links doesn't work, so I'm confused whether there is a solution to do that.

我似乎很简单.....我无法相信没有办法。

I seem so simple..... I cann't beleave there is not a way.

推荐答案

远程MOTODEV Studio的设备功能旨在用于与远程电话的TCP / IP连接。这时需要大量的手动干预才能使工作正常进行,并且在这个领域中我们绝对需要更好的文档。

The Remote device feature of MOTODEV Studio is intended for TCP/IP connections to a remote phone. It requires a lot of manual intervention at this point to get things working and it's an area where we're definitely in need of better documentation.

我没有完整的工作流程摆在我面前,但是您需要执行的步骤如下:

I don't have the full workflow in front of me, but the steps you need go like this...


  1. 将电话连接到远程主机。

  2. 使用远程主机上的adb shell,将电话设置为通过TCP / IP而非USB连接。您需要手动找到手机的IP地址。如果您使用的是Motorola手机和Motorola驱动程序,则可能是192.168.16.x

  3. 设置从远程主机到手机的调试端口端口(可能是5554或5555)。

  4. 从本地主机的IP字段中设置远程主机的地址。

  5. 选择运行方式或从本地主机调试为,您需要选择远程设备作为目标。

  1. Connect phone to remote host.
  2. Using adb shell on remote host, set the phone to connect over TCP/IP rather than USB. You'll need to find the IP address of the phone manually. If you're using a Motorola phone and the Motorola drivers, it's probably 192.168.16.x
  3. Set up port forwarding from the remote host to the phone for the debug ports (probably 5554 or 5555).
  4. From the local host, set up the address of the remote host in the IP field.
  5. When choosing "Run as" or "Debug As" from the local host, you need to choose the remote device as your target.

我们打算使此工作流程更加完善将来会自动执行,但现在您必须手动执行。我的观察是,无论我们是在谈论电话还是参考板,嵌入式系统的远程调试仍然很慢,并且容易出现延迟和线路质量问题。

We intend to make this workflow more automated in the future, but for now you have to do this manually. It's my observation that remote debugging of embedded systems is still slow and prone to problems with latency and line quality, regardless of whether we're talking about phones or reference boards.

祝你好运。

这篇关于在另一台机器上连接android模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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