Unable to inspect the UI using UIAutomatorViewer in Android App

Getting error message while inspecting the android native app with UIAutomatorViewer(Device Screenshot(UI Automator Dump))

Please find the attached screenshot.

You probably have an Appium session open.
Close it and try again, it should work.

I didn’t open any session and this error is coming for specific screen not for all screens.

Just Remove your usb cable and connect it once again and also kill the app and start it from first

This happens when some element continuously updating the UI thread , like a progress bar . You may try to get the page source and try constructing locator from it.

Do you know why this happen? Since uiatuomatorviewer has nothing to do with open appium session.