Open truebit opened 8 years ago
in Python, it would throw RPC server not started!
error. It took time to locate the real problem.
I think the error should be more precise when executing system commands. add some polling and exit code check would be much better
@truebit what's your SDK level? 4.2.x should be SDK level 17.
Device with SDK level < 18 should push bundle.jar/uiautomator-stub.jar to device side.
yep, these files were pushed to device. but python-uiautomator seems not invoking them
@truebit May be you have not the latest release of python uiautomator
uiautomator - Python Wrapper for Android UiAutomator test tool INSTALLED: 0.2.6 (latest)
Of course I installed the latest one... anyway I gave up uiautomator py and wrote a native uiautomator jar to fulfill my requirements.
command would stuck here on Xiaomi Redmi 1 with version 4.2.1 HM2013022 On device it would display below error: package parse error
app-uiautomator.apk
has the same problem.Tried on another Android 4.2.1 device, adb command returned
I guess you are using UiAutomator2, which only supports API level 18 and later. Maybe you should make it clear in README