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

在确认过自己手机android 大于4.1版本后,你可以尝试:

1、重新拔插你的USB数据线
Pull out and reinsert USB line.

2、尝试卸载你手机里的两个uiautomator APK,然后重启你的手机。
Try to uninstall the uiautomator in you android Phone(2 apk), and reboot you phone.

3、尝试复位5037监听:$ adb -a -P 5037 fork-server server &
Try to restart you adb tcp:5037 server:
$ adb -a -P 5037 fork-server server &

4、尝试退出电脑上的uiautomatorviewer,必要时重启
Try to exit the uiautomatorviewer in you computer, reboot you computer when necessary.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容