网上大部分博客,都少说了,第1步,导致解决不了问题…
问题:
打开android device monitor提示unexpected error while parsing input:Invalid ui automator hierarchy file.
解决步骤:
1、Ensure you have no other monitor.exe (if on Windows) or monitor (if OS X / Linux) process running. If you do, kill it.(确保你的电脑没有Monitor.exe进程,也就是说,你得先把你的Monitor关掉,在任务管理器里查看一下,确保它不存在。)
2、Run rm -rf $HOME/.android/monitor-workspace or remove the directory manually(删除位于C:\Users\Administrator.android中的monitor-workspace文件夹)