ATX 求助,更新 atx 后报 “uiautomator.JsonRPCError: JsonRPC Error code: -32001” 错误

白玉 · 2017年11月07日 · 最后由 codeskyblue 回复于 2017年11月07日 · 2233 次阅读

ATX version 1.1.3 dev35
ADB version 1.0.36
System MAC
一到使用 uiautomator 的时候就报此错误
复现 100%

Log:

d(className='android.widget.Button', text = '允许').click()
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/site-packages/uiautomator/init.py", line 897, in inner
self.wait_for_exists(self.timeout) # default
File "/usr/local/lib/python2.7/site-packages/uiautomator/
init.py", line 933, in wait_for_exists
return self.jsonrpc.waitForExists(self.selector, timeout)
File "/usr/local/lib/python2.7/site-packages/uiautomator/
init.py", line 417, in wrapper
return _method_obj(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/uiautomator/
init.py", line 196, in __call_
return self.remote_call(data)
File "/usr/local/lib/python2.7/site-packages/uiautomator/init.py", line 183, in remote_call
"%s: %s" % (exception_type, error["message"])
uiautomator.JsonRPCError: JsonRPC Error code: -32001, Message: java.lang.IllegalStateException: UiAutomation not connected!

共收到 1 条回复 时间 点赞

atx 换成1.1.3 dev36试试,我试了试本地好像还可以

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册