For Android 9.0 System, the following errors are reported when capturing elements using uiautomaterver + genymotion simulator:
Unexpected error while observing UI hierarchy java.lang.reflect.invocationtargetexception, as shown in the figure:
Solution: update the tools folder corresponding to the Android SDK to version 26
After downloading the file, unzip it, delete the tools folder under the original SDK directory, then copy the unzipped folder to the SDK directory, and then start uiautomaterver.bat to recapture it successfully