[Android] [problem-solving record] Error obtaining UI hierarchy

  

  Error obtaining UI hierarchy encounter two types of error in the use of uiautomatorviewer, namely:

 

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

 

 

Error taking device screenshot: EOF

 

Solution

 

I tried many ways to find online, have said that the impact of Appium, finally Yiyanbuge the Appium also uninstalled, but still to no avail. In fact, the root of the problem is very simple. Adb version of the computer is too high lead to the end of  ┓ ('∀`) ┏

Execute adb shell getprop ro.build.version.sdk, view the phone sdk version is 28, and the installation of computer platform-tools is 29, seems too high adb version can not. Finally, re-download a version to get 28 (1 • ㅂ •) و✧

 

Guess you like

Origin www.cnblogs.com/lilip/p/11089713.html