layout-inspector

How can I use Layout Inspector for apps installed from Google Play?

只谈情不闲聊 提交于 2021-02-07 02:47:42
问题 I was trying to use LayoutInspector for apps from Google Play. I have a rooted device so when I do "Show all processes", all the running apps developed by me are displayed but not the official ones. 回答1: you ca go to the /Users/.../Library/Android/sdk/tools/monitor and select dump view 回答2: You can use UiAutomator2 Viewer ( a tool from android SDK) { your sdk path} \tools\bin\uiautomatorviewer.bat This tool shows the complete hierarchy and attributes of all elements visible on the device

Android Layout Inspector fails with timeout error

此生再无相见时 提交于 2020-01-03 07:21:11
问题 When I try to inspect my application's layout in a simulator, by going Tools => Layout Inspector , it always fails with one of the errors: 1. Error obtaining view hierarchy: There was a timeout error capturing the layout data from the device. The device may be too slow, the captured view may be too complex, or the view may contain animations. Please retry with a simplified view and ensure the device is responsive. 2. No active windows displayed by com.instabridge.android.dev The layout is not

Can't start Android Studio Layout Inspector: “Unexpected error: empty view hierarchy”

梦想的初衷 提交于 2019-12-04 14:57:57
问题 Can't seem to launch Layout Inspector on Android Studio 3.0 (Canary 3) When connected to my device and app running, choosing Tools > Android > Layout Inspector comes up with the following error dialog: "Error obtaining view hierarchy: Unexpected error: empty view hierarchy" Any setup I'm missing? I have Developer Options enabled on the device. 回答1: 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