xiaocong / uiautomator

Python wrapper of Android uiautomator test tool.
MIT License
2.04k stars 643 forks source link

JsonRPC Error code: 0, Message: java.lang.IllegalStateException: UiAutomation not connected! #261

Open arunsai94 opened 6 years ago

arunsai94 commented 6 years ago

Every time when we execute the script JsonRPC Error code: 0, Message: java.lang.IllegalStateException: UiAutomation not connected!

Above Error is coming ..

ADB Version : 1.0.36 Device Android version : 8.1 oreo

onlinesen commented 6 years ago

make sure uiautomator not be killed, and try start instrumentation by manual: adb shell am instrument -w com.github.uiautomator.test/android.support.test.runner.AndroidJUnitRunner

codeskyblue commented 6 years ago

if you don't mind, you can use my forked version. fixed this issue. https://github.com/openatx/uiautomator2