带有USB设备的Android Logcat

问题描述 投票:1回答:1

[在我使用具有本机库的Andriod Studio进行开发时,我现在可以在logcat窗口中看到日志。但由于无法将平板电脑通过USB连接到Android Studio,也无法使用USB HDD设备,因此我必须在平板电脑上运行该应用程序才能查看日志。但是,如果应用程序在具有连接的硬盘的平板电脑上运行,而不是通过USB连接到Android Studio的平板电脑上运行,该如何获取该日志?

android android-studio android-ndk
1个回答
0
投票

Michael的评论应该是答案。您可以通过网络连接到亚行。

首先通过USB连接,通过执行以下操作在设备上启用adb网络adb tcpip 5555,然后可以通过执行adb connect 192.168.ip_of_device

断开USB并通过网络连接
© www.soinside.com 2019 - 2024. All rights reserved.