当前位置:   article > 正文

IOError: uiautomator start failed: INSTRUMENTATION_STATUS: id=ActivityManagerService_uiautomator started failed

uiautomator started failed

ATX进行关键字调用时报错:IOError: uiautomator start failed: INSTRUMENTATION_STATUS: id=ActivityManagerService

 

Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\1.py", line 9, in <module>
d.press.back()
File "E:\software\python\lib\site-packages\uiautomator\__init__.py", line 149, in __call__
return self.func(*args, **kwargs)
File "E:\software\python\lib\site-packages\uiautomator\__init__.py", line 814, in _press
return self.server.jsonrpc.pressKey(str(key))
File "E:\software\python\lib\site-packages\uiautomator\__init__.py", line 422, in wrapper
server.start(timeout=30)
File "E:\software\python\lib\site-packages\uiautomator\__init__.py", line 498, in start
raise IOError("uiautomator start failed: " + stdout)
IOError: uiautomator start failed: INSTRUMENTATION_STATUS: id=ActivityManagerService


INSTRUMENTATION_STATUS: Error=Permission Denial: starting instrumentation ComponentInfo{com.github.uiautomator.test/android.support.test.runner.AndroidJUnitRunner} from pid=10262, uid=10262 not allowed because package com.github.uiautomator.test does not have a signature matching the target com.github.uiautomator


INSTRUMENTATION_STATUS_CODE: -1


java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{com.github.uiautomator.test/android.support.test.runner.AndroidJUnitRunner} from pid=10262, uid=10262 not allowed because package com.github.uiautomator.test does not have a signature matching the target com.github.uiautomator

 

解决办法:卸载干净,重新装

pip uninstall atx

pip uninstall atx-uiautomator

pip uninstall uiautomator

pip uninstall uiautomator2

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/556664
推荐阅读
相关标签
  

闽ICP备14008679号