简体   繁体   中英

Android UI Automator Viewer

I am trying to use UIAutomator Viewer from Android SDK 6.0. When I connect a device with version 5.1.1 or above, I am unable to capture the UI Layout. It says the following:

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

Did anyone face the same issue on the latest versions only? If so, please let me know the fix.

I've faced that error but I disconnect the device and connect it again and it works fine. Oh and if you're interacting with it (UiAutomator, Espresso, w/e) it won't let you capture the UI with the UiAutomatorViewer at the same time.

@sah check whether your device is connected with some other server like if you are using appium and its running then you will not get the screens and you will get that error .So make sure that the app device is not connected with any server and running. Otherwise disconnect adb devices and connect again with your device.It will work fine

杀死uiautomator的现有正在运行的实例,然后再次运行。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM