我是新手使用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)
答案 0 :(得分:0)
从不介意我能够通过加载新的uiautomator并在我的设备上设置root previlages来使其工作现在我被困在某一点上,
当我们在unix上进行uiautomator转储时,它正在转储xml以及一些警告,并且ViewClient无法解析XML文件(弹出错误不正确的XML格式)有没有办法可以将它附加到文件并解析它而不是在" viewclient.py"
中从终端窗口解析