如何在android系统远程运行的一个项目? [英] How to run a project remotely in android?

查看:109
本文介绍了如何在android系统远程运行的一个项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android项目,我想使用eclipse或一些其他的方式来运行另一台计算机上仿真器项目。这可能吗?

I have an android project and I want to run the project in an emulator in another computer using eclipse or some other way. Is it possible?

推荐答案

是的,这是可能的。两种可能性:

Yes, it is possible. Two possibilities:

1)远程使用X,VNC或远程桌面运行整个工作会话包括Eclipse

1) Run the whole work session including eclipse remotely using X, vnc, or remote desktop

2)远程运行刚刚模拟器,并通过TCP交谈吧。仿真器的TCP实现通常只监听本地回环接口上,所以你要么需要修改或使用端口转发器。如果使用SSH连接到远程机器,有将设置必要的端口转发给你的命令行选项。然后,您就告诉你坐在通过TCP连接到Android设备上机亚行提供你坐在机器的环回接口和机器,你告诉SSH的本地端口转发到本地端口在远程机器上它的仿真器监听。

2) Run just the emulator remotely, and talk to it via TCP. The emulator's TCP implementation normally only listens on the local loopback interface, so you'd either need to modify that or use a port forwarder. If you use SSH to connect to the remote machine, there are command line options that will set up the necessary port forwarding for you. You then just tell adb on the machine you are sitting at to connect to an android device over tcp, supplying the loopback interface of the machine you are sitting at and the local port on that machine that you have told ssh to forward to the local port on the remote machine where it's emulator is listening.

这篇关于如何在android系统远程运行的一个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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