IOError: uiautomator start failed: INSTRUMENTATION_STATUS: id=ActivityManagerService

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

 

Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\1.py", line 9, in
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

你可能感兴趣的:(问题解决)