Error obtaining UI hierarchy when using UI Automator Viewer

Viewed 500

I am trying to use UI Automator Viewer and have been testing on a device with Android version 10 and on another device with Android 9. I'm following the tutorial here.

When I try and run UI Automator Viewer then click the button in the top left I get this error:

Error obtaining UI hierarchy

Reason: Unexpected error while obtaining UI hierarchy

Details:

java.lang.reflect.InvocationTargetException

In the command window I notice the following log:

11:39:38 E/Screenshot: Unsupported protocol: 2

In Android studio I have Android SDK Build-Tools version 30.0.2 installed.

I've tried restarting the viewer and still same issue. Also I'm not using Appium.

0 Answers
Related