【问题标题】:Facing issue in running multiple emulators with AOSP使用 AOSP 运行多个模拟器时面临的问题
【发布时间】:2020-04-21 15:24:14
【问题描述】:

问题概述:

使用自定义模拟器构建 AOSP(更新 default.xml)后,同时执行多个模拟器时遇到错误

命令:

外壳1: 模拟器 -port -no-skin -no-audio -no-window -qemu -device ,addr=,size=

Shell2:(启动第二个模拟器的相同命令) 模拟器 -port -no-skin -no-audio -no-window -qemu -device ,addr=,size=

错误:

在 shell1 中,没有遇到错误。模拟器运行良好。 在 shell2 中,错误:使用相同的 AVD 运行多个模拟器是一项实验性功能

问题:

如何使用 AOSP 正确创建多个 AVD,以便多个模拟器可以同时工作?

【问题讨论】:

    标签: android-emulator android-source avd


    【解决方案1】:

    使用“-read-only”可以同时运行多个模拟器。

    以下命令有效:

    命令:

    外壳1:

    模拟器 -port -no-skin -no-audio -no-window -read-only -qemu -device ,addr=,size=

    Shell2:(启动第二个模拟器的相同命令)

    模拟器 -port -no-skin -no-audio -no-window -read-only-qemu -device ,addr=,size=

    参考:https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/android-building/OUM2KMQuIc4/GRcV4z9_CQAJ

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-15
      相关资源
      最近更新 更多