【问题标题】:Why is the toolbar containing the screenshot icon missing in uiautomatorviewer为什么 uiautomatorviewer 中缺少包含屏幕截图图标的工具栏
【发布时间】:2021-06-30 17:49:25
【问题描述】:

通常在 uiautomatorviewer 中有一个工具栏,其中包含诸如截屏、保存屏幕截图等号召性用语图标。不知何故,我的 uiautomatorviewer 中缺少该工具栏。我是在 macOS 上安装 Android/SDK 后第一次打开它,所以我无法从连接的移动设备捕获屏幕截图。

这是我看到的:

我应该看到这样的东西:

如何获取工具栏?我做错了什么?

【问题讨论】:

    标签: android sdk appium appium-android android-uiautomator


    【解决方案1】:

    我遇到了同样的问题。它有助于简单地更改窗口的大小并显示面板。

    【讨论】:

      【解决方案2】:

      在较新版本的 macOS 中会出现此问题。 所以下载这个jar文件 https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.16-202006040540/swt-4.16-cocoa-macosx-x86_64.zip

      下载 swt.jar 文件后重命名为 swt2.jar 并将文件复制粘贴到 Andriod/sdk/lib/x_86 文件夹中

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2023-03-08
        • 2021-02-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多