我正在尝试运行一个包含以下代码段的简单脚本:
from com.dtmilano.android.viewclient import ViewClient
device, serialno = ViewClient.connectToDeviceOrExit()
vc = ViewClient(device, serialno)
上面的最后一行给出了以下错误:
Traceback (most recent call last):
File "D:\Documents\AndroidView\av_settings.py", line 7, in <module>
vc = ViewClient(device, serialno)
File "C:\Python27\lib\site-packages\com\dtmilano\android\viewclient.py", line 2560, in __init__
subprocess.check_call([self.adb, '-s', self.serialno, 'shell', 'am', 'force-stop', 'com.dtmilano.android.culebratester'])
File "C:\Python27\lib\subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['C:\\Python27\\\\adb.exe', '-s', 'SH34KW901028', 'shell', 'am', 'force-stop', 'com.dtmilano.android.culebratester']' returned non-zero exit status -1073741515
我无法弄清楚可能导致此错误的原因。非常感谢任何帮助!