UIAutomatorviewer throws error


Still i am facing this issue after doing below steps:

adb shell uiautomator dump
adb pull /sdcard/window_dump.xml ui.uix
adb shell screencap -p /sdcard/ui.png
adb pull /sdcard/ui.png .

  1. Run the script. It will generate ‘ui.uix’ and ‘ui.png’ files in current directory.
  2. Load the ‘ui.uix’ and ‘ui.png’ files into ui automator viewer by clicking ‘Open’ button.

Could you please get me help out ?


Hello! What does not work?

This workaround work for me

@Saurav24 : download platform_tools older version 26 and replace adb.exe file from that folder with your current adb.exe in platform_tools folder.