从 Android SDK 中删除了 Uiautomatorviewer.bat?

问题描述

我今天想使用 uiautomatorviewer.bat,但是当我点击它时,它自行消失了。这通常发生在文件有更新并且 Android Studio 以某种方式识别出来时。 layout inspector 现在是 uiautomatorviewer 的替代品吗?由于文档仍然提到该工具,例如 https://developer.android.com/training/testing/ui-automator,我不确定。 Android-SDK 中还有几个版本的 uiautomator.jar, 例如例如在 Android\Sdk\platforms\android-30\Android\Sdk\tools\lib\ 中。 但当然,您不能直接调用 JAR 文件,因为缺少某些依赖项(路径)。我尝试使用一些旧的 uiautomatorviewer.bat,但由于权限问题无法将其放入 Android\Sdk\tools\bin\。调整路径将是一团糟。 由于某些信息,我想在 uiautomatorviewer 上使用 layout inspector,我无法在 layout inspector输出中找到这些信息。

操作系统:Windows 10
Android Studio:4.2.2 包括最新的 SDK 工具。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)