2

我是使用 android 视图客户端的新手,我正在尝试从我的系统运行视图客户端程序,但总是出现如下错误:

ERROR: testSomething (__main__.CulebraTests)
----------------------------------------------------------------------
Traceback (most recent call last):
    raise RuntimeError('''ERROR: UiAutomator output contains no valid informatio
n. UiAutomator was killed, no reason given.''' + extraInfo) RuntimeError: 

     ERROR: UiAutomator output contains no valid information. UiAutomat
or was killed, no reason given.
It is known that 'com.android.commands.monkey' conflicts with 'uiautomator'. Please kill it and try again.

在我的情况下,当我尝试将参数分配给“VC”时,我看到 UIAutomator 转储总是被杀死,是否有任何解决方法:

vc = ViewClient(device, serialno)

4

1 回答 1

0

没关系,我能够通过加载新的 uiautomator 并在我的设备上设置 root previlages 来让它工作,现在我卡在了一个点上,

当我们在 unix 上进行 uiautomator 转储时,它会转储 xml 以及一些警告,并且 ViewClient 无法解析 XML 文件(弹出错误 XML 格式不正确)有没有办法可以将它附加到文件并解析它而不是解析从“viewclient.py”中的终端窗口

于 2015-07-30T14:49:03.707 回答