ub-uiautomator.jar is obtained from ub-support-test (uiautomator-v18-2.1.5-release-no-dep.jar) can be rebuilt from project platform/frameworks/uiautomator revision 4c4c25eb5e399e7e4e8532e2dedd48fa6efa17a6 uiautomator-2.2.0-alpha4.jar is obtained from downloading https://maven.google.com/androidx/test/uiautomator/uiautomator/2.2.0-alpha4/uiautomator-2.2.0-alpha4.aar and extracting classes.jar