本文介绍了无法启动Android Studio布局检查器:“意外错误:空视图层次结构"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎无法在Android Studio 3.0(金丝雀3)上启动Layout Inspector

Can't seem to launch Layout Inspector on Android Studio 3.0 (Canary 3)

连接到我的设备并运行应用程序时,选择工具">"Android">布局检查器"会显示以下错误对话框:

When connected to my device and app running, choosing Tools > Android > Layout Inspector comes up with the following error dialog:

获取视图层次结构时出错:意外错误:空的视图层次结构"

我缺少任何设置吗?我在设备上启用了开发人员选项.

Any setup I'm missing? I have Developer Options enabled on the device.

推荐答案

通常,当视图中有某些东西在移动"时,我会出现这种情况,因此布局检查器无法检索简单的布局,这就是为什么暂停视频会起作用的原因但是如果您需要更复杂的功能(例如相机预览或Google Map)比较困难,则不确定如何解决此问题

In general I've this behavior when something is "moving" in the view so the layout inspector cannot retrieve a simple layout, that's why pausing a video will work but if you have something more complex like camera preview or Google Map is harder, not sure how to work around this

这篇关于无法启动Android Studio布局检查器:“意外错误:空视图层次结构"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 17:11