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.

你可能感兴趣的:(Error: "Error obtaining UI hierarchy" Reason: Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!)