ADB,Wifi和Eclipse:我可以如何配置? [英] ADB, Wifi and Eclipse: how I can configure?

查看:193
本文介绍了ADB,Wifi和Eclipse:我可以如何配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我看到可以通过使用WIFI而不是USB调试方法调试应用程序开发。我进行搜索,我发现一个名为 abdWireless 的应用程序,但我有一个问题。



我怎么能告诉Eclipse通过Wifi方式连接?



我认为这是一个自动进程,但在启动调试它打开模拟器。



有人? :)
Bye

解决方案

首先运行'adb connect ip:port',如 adb connect< phone-ip-address> ,来自控制台/终端(具有您的IP地址和原因的端口)。这使得 adb 服务通过网络连接到您的设备。
如果没有指定端口号,默认使用端口5555。



然后检查设备是否正确连接:运行 adb devices 从控制台/终端(确保从设备中删除usb电缆)。如果 adb设备没有列出您的设备,那么您有一些完全不同的问题。






如果您已经通过 adb 连接了您的设备,您可以在 adb设备中查看设备列表,但是你的eclipse仍然启动模拟器,


  1. 转到Run-> Debug Configuration - > [您的配置]

  2. 在您的配置中,转到目标选项卡,然后选择手动



每次从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,:

  1. Go to Run->Debug Configuration -> [your configuration]
  2. In your configuration go to Target tab and select Manual

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屋!

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