Error while obtaining ui hierarchy using ui automator | Appium Forum
D
Dinesh P Patil Posted on 21/08/2019

Hi Ashish, 

Getting following error while taking screenshot using uiautomator :

Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist! Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!

Please provide solution for the same. 
 
REGARDS, 
Dinesh

A
aditya Replied on 22/08/2019

Hi Dinesh

Greetings for the day.

can you please delineate in details every step and screenshot that you have followed while you encountered this problem


D
Dinesh P Patil Replied on 25/08/2019

Thanks Aditya, 
 
details :while taking device screenshot of dynamic screen using ui automator getting following error:
 
Responsive image
 
Regards,
Dinesh
 


A
aditya Replied on 30/08/2019

Seems like you are using the old version of uiautomator, please use uiautomator2 which is present inside Appium.

just start the Appium server, click on download button at top and fill the desired caps for your app under test and start server , it will automatically show uiautomator2 screen