Android的 - 运行/通过WiFi安装/调试应用程序? [英] Android - Run/install/debug applications over WiFi?

查看:110
本文介绍了Android的 - 运行/通过WiFi安装/调试应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有办法通过WiFi来测试您的应用程序的开发,这是准确的?我很想能够untether我的手机和无线发展。

I thought there was a way to test your applications in development over WiFi, is this accurate? I'd love to be able to untether my phone and develop wirelessly.

推荐答案

下面参见:<一href="http://forum.xda-developers.com/showpost.php?p=7594419&postcount=9">http://forum.xda-developers.com/showpost.php?p=7594419&postcount=9

  1. 在通过USB连接的设备,并确保调试工作。
  2. ADB TCPIP 5555
  3. ADB连接&LT; D​​EVICE_IP_ADDRESS&GT;:5555
  4. 断开USB和进行无线调试。
  5. ADB -s&LT; D​​EVICE_IP_ADDRESS&GT;:5555 USB 完成后切换回
  1. Connect device via USB and make sure debugging is working.
  2. adb tcpip 5555
  3. adb connect <DEVICE_IP_ADDRESS>:5555
  4. Disconnect USB and proceed with wireless debugging.
  5. adb -s <DEVICE_IP_ADDRESS>:5555 usb to switch back when done.

没有根所需!

要查找设备的IP地址:运行亚行外壳然后加上netcfg 。你会看到它。

To find the IP address of the device: run adb shell and then netcfg. You'll see it there.

@Sergei建议,第2行应该进行修改,评论:连接到USB设备时,其他连接仍然存在需要-d选项(例如仿真器连接或其它WiFi设备)

@Sergei suggested that line 2 should be modified, commenting: "-d option needed to connect to usb device when other connection persists (for example emulator connected or other wifi device)".

这信息可能是有价值的,以未来的读者,但我回滚到已收到178 upvotes的原始版本。

This information may prove valuable to future readers, but I rolled-back to the original version that had received 178 upvotes.

这篇关于Android的 - 运行/通过WiFi安装/调试应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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