ADB,Wifi和Eclipse:我可以如何配置? [英] ADB, Wifi and Eclipse: how I can configure?
问题描述
我怎么能告诉Eclipse通过Wifi方式连接?
我认为这是一个自动进程,但在启动调试它打开模拟器。
有人? :)
Bye
首先运行'adb connect ip:port',如 adb connect< phone-ip-address>
,来自控制台/终端(具有您的IP地址和原因的端口)。这使得 adb
服务通过网络连接到您的设备。
如果没有指定端口号,默认使用端口5555。
然后检查设备是否正确连接:运行 adb devices
从控制台/终端(确保从设备中删除usb电缆)。如果 adb设备
没有列出您的设备,那么您有一些完全不同的问题。
如果您已经通过 adb
连接了您的设备,您可以在 adb设备中查看设备
列表,但是你的eclipse仍然启动模拟器,
- 转到Run-> Debug Configuration - > [您的配置]
- 在您的配置中,转到
目标
选项卡,然后选择手动
每次从eclipse启动应用程序时,都会弹出设备选择。因此,您将能够明确指出要使用的仿真器/设备。
要断开连接您的设备, adb disconnect< phone-ip-address>
Recently I see that is possible to debug app development by use WIFI instead of USB debug method. I make a search and I found an app called abdWireless but I have a problem.
How I can tell to Eclipse to connect via Wifi method?
I think that it is an automatic process, but on start debug it open the Emulator.
Someone? :) Bye
First, run 'adb connect ip:port', like adb connect <phone-ip-address>
, from console/terminal (with your IP address and port of cause). This makes adb
service to connect to your device via network.
Port 5555 is used by default if no port number is specified.
Then check that device is correctly connected: run adb devices
from console/terminal (make sure you remove usb cable from device). If adb devices
does not list your device, then you have some entirely different issue.
If you've connected your device via adb
and you can see the device in adb devices
list, but your eclipse still starts emulator,:
- Go to Run->Debug Configuration -> [your configuration]
- In your configuration go to
Target
tab and selectManual
This will popup device selection each time you start the app from eclipse. So you will be able to explicitly state which emulator/device to use.
To disconnect your device, adb disconnect <phone-ip-address>
这篇关于ADB,Wifi和Eclipse:我可以如何配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!