我做了什么:
下载并解压AndroidViewClient v4.0.0源码
用于ant
构建
使用 check-import.py 示例来确保我的ANDROID_VIEW_CLIENT_HOME
env 变量设置正确。
java -jar bin/androidviewclient-4.0.0.jar
显示命令
java -jar bin/androidviewclient-4.0.0.jar dump
因错误而崩溃:
File "/home/me/dump", line 135, in <module>
vc.dump(window=options[WINDOW])
File "/path/to/jar/com/dtmilano/android/viewclient.py", line 1831, in dump
File "/path/to/jar/com/dtmilano/android/viewclient.py", line 1560, in setViewsFromUiAutomatorDump
File "/path/to/jar/com/dtmilano/android/viewclient.py", line 1715, in _ViewClient__parseTreeFromUiAutomatorDump
File "/path/to/jar/com/dtmilano/android/viewclient.py", line 1016, in Parse
File "/path/to/jar/com/dtmilano/android/viewclient.py", line 1016, in Parse
TypeError: encode() takes no keyword arguments
我已经仔细检查了文档,但找不到任何相关内容。此外,我检查了我的环境变量并尝试更改它们。没有改变错误。
有人以前见过这个错误吗?