我已经使用easy_install as recommended在Windows上安装了AndroidViewClient,而且我在执行基本转储时遇到了问题。
D:\Apps\Python27\Lib\site-packages\androidviewclient-10.5.1-py2.7.egg\EGG-INFO\scripts>python dump -Vc
Connecting to a device with serialno=.* with a timeout of 60 secs...
Connected to device with serialno=.*
Actual device serialno=XXXXXXXXXX
Traceback (most recent call last):
File "dump", line 189, in <module>
vc.dump(window=options[WINDOW])
File "D:\Apps\Python27\lib\site-packages\androidviewclient-10.5.1-py2.7.egg\com\dtmilano\android\viewclient.py", line 3074, in dump
raise RuntimeError('''ERROR: UiAutomator output contains no valid information. UiAutomator was killed, no reason given.''' + extraInfo)
RuntimeError: ERROR: UiAutomator output contains no valid information. UiAutomator was killed, no reason given.
我只是想确保我的AndroidViewClient安装是理智的,这样我就可以通过使用MonkeyRunner转换当前的低级UI调用。
为了记录,我使用的是Sony Xperia Z3 Compact(非root)。
此外,我对所有这些(python模块,android,AVC ......)有一个非常基本的理解甚至根本没有理解,所以我立刻道歉并且大量地忽略了......