获取UI层次结构时发生错误获取UI层次结构XML文件时发生错误:com.android.ddmlib.SyncException:远程对象不存在 [英] Error obtaining UI hierarchy Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist
问题描述
我正在用adb测试我的应用程序,但是当我执行 uiautomator的转储视图层次结构时出现此错误:
I am testing my app with adb, but i get this error when i execute "dump view hierarchy for uiautomator":
Error获取UI层次结构获取UI层次结构XML
文件时出错:com.android.ddmlib.SyncException:远程对象不存在!
Error obtaining UI hierarchy Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!
我的adb版本是1.0.36,我的android版本是6.0.1。
My adb version is 1.0.36 and my android version is 6.0.1.
仅当在界面中存在一个动态元素时,才会出现此错误。
This error comes launched only when in the interface there is a dynamic element that is in motion.
预先感谢您。
推荐答案
最好方法是杀死adb服务器,然后重新启动它。
The best way is to kill the adb server and start it again.
- sudo adb杀服务器
- sudo adb启动服务器
这可以解决问题。
这篇关于获取UI层次结构时发生错误获取UI层次结构XML文件时发生错误:com.android.ddmlib.SyncException:远程对象不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!