层次是不工作的我的设备我的、层次、设备、工作

2023-09-13 02:27:03 作者:画上幸福的句号

当我在终端上运行的层次结构。它可以显示它的接口,但是不能连接到我device.And它可以连接到虚拟仿真器。它提醒我在这样的终端,

when I run hierarchy in terminal. it can show the interface of it, but can not connect to my device.And it can connect to virtual emulator. It remind me in terminal like that,

在亚洲开发银行拒绝着命令的设备172.18 ......未知的主机服务 在缺少前锋端口172.18 ..... 无法从设备172.18获得查看服务器protocal版本....

如何能显示我的设备我的视图结构层次结构中的观众。谁能帮助我?或 谁知道在哪里可以找到层次的知识。在此先感谢。

How can it show my view structure of my device in the hierarchy viewer. Can anyone help me ?or anyone who knows where to find the knowledge of the hierarchy. thanks in advance.

推荐答案

HierarchyViewer不会对生产工作建立出于安全原因。我写了一个API,让您使用HierarchyViewer在任何设备上使用您的应用程序: https://github.com/romainguy/ViewServer

HierarchyViewer doesn't work on production builds for security reasons. I wrote an API that lets you use HierarchyViewer on any device with your app: https://github.com/romainguy/ViewServer