问题描述
是否有可能显示亚行logcat
在Android的Studio中的 TCPIP
设备?我写它利用USB端口的应用程序,我不能用它 ADB USB
。
Is it possible to show the adb logcat
for a tcpip
device in Android Studio? I am writing a application that utilizes the USB port and I cannot use it for adb usb
.
目前,我使用下面的指令来查看命令提示符的logcat的,但如果被纳入,因为这将是很好的:
http://developer.android.com/tools/help/adb.html#wireless
Currently, I am using the following instruction to view the logcat in Command Prompt, but it would be nice if this was integrated into AS:http://developer.android.com/tools/help/adb.html#wireless
推荐答案
一些测试的Android Studio之后已经支持这一点。你只需要执行下面的命令,亚行,现在你可以看到logcat的,甚至无线加载应用程序。没有USB电缆所需!
After some testing Android Studio already supports this. You just need perform the following ADB commands, and now you can see the logcat and even wirelessly load your application. No USB cable needed!
从:http://developer.android.com/tools/help/adb.html#wireless
$ adb tcpip 5555
restarting in TCP mode port: 5555
找出Android设备的IP地址:设置 - >关于平板电脑 - >状态 - > IP地址。记住IP地址的形式#的。###。亚洲开发银行主机连接到设备:
Find out the IP address of the Android device: Settings -> About tablet -> Status -> IP address. Remember the IP address, of the form #.#.#.#. Connect adb host to device:
$ adb connect #.#.#.#
connected to #.#.#.#:5555
这篇关于使用了TCPIP ADB Android Studio中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!