uiautomator icon indicating copy to clipboard operation
uiautomator copied to clipboard

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

Open arunsai94 opened this issue 6 years ago • 2 comments

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

arunsai94 avatar Jun 26 '18 14:06 arunsai94

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

onlinesen avatar Jun 27 '18 00:06 onlinesen

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

codeskyblue avatar Jun 27 '18 00:06 codeskyblue