【问题标题】:UIAutomator2 and Android Studio emulator issues on M1 MacM1 Mac 上的 UIAutomator2 和 Android Studio 模拟器问题
【发布时间】:2022-01-08 14:22:02
【问题描述】:

我无法启动 UIAutomator2 的 AtxAgent:

尝试从命令行启动 atx 服务器:

adb shell /data/local/tmp/atx-agent server --nouia --addr :7912

给予:

/system/bin/sh: /data/local/tmp/atx-agent: not executable: 32-bit ELF file

我在 M1 Mac mini (Arm) 上从 Android Studio 运行它。 我正在为 arm64 模拟带有 Android 10 的 Pixel 2。我也尝试过 Android 11、12 和 Sv2 并得到同样的错误。 这适用于我的 Intel Mac mini,所以问题可能与 arm 相关?

【问题讨论】:

    标签: android-emulator android-studio


    【解决方案1】:

    此错误是由于未针对 arm64 v8 编译 atx-agent。 我下载了源代码并编译它,然后推送到模拟器,现在它可以工作了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-08-03
      • 2021-08-28
      • 2021-11-02
      • 2021-08-29
      • 2018-06-28
      • 2022-11-16
      • 1970-01-01
      相关资源
      最近更新 更多