使用AOSP运行多个仿真器时面临的问题 [英] Facing issue in running multiple emulators with AOSP

查看:93
本文介绍了使用AOSP运行多个仿真器时面临的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题概述:

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

After building AOSP with custom emulator(updated default.xml), facing error in executing multiple emulators simultaneously

命令:

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

Shell1: emulator -port -no-skin -no-audio -no-window -qemu -device ,addr=,size=

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

Shell2: (same command to up second emulator) emulator -port -no-skin -no-audio -no-window -qemu -device ,addr=,size=

错误:

在shell1中,没有错误.模拟器运行正常. 在shell2中,错误:使用相同的AVD运行多个仿真器是一项实验性功能

In shell1, no error is faced. Emulator runs fine. In shell2, ERROR: Running multiple emulators with the same AVD is an experimental feature

问题:

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

How to correctly create multiple AVDs with AOSP such that multiple emulators can work simultaneously?

推荐答案

使用"-read-only"可以同时运行多个模拟器.

With "-read-only" could run multiple emulators simultaneously.

以下命令有效:

命令:

Shell1:

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

emulator -port -no-skin -no-audio -no-window -read-only -qemu -device ,addr=,size=

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

Shell2: (same command to up second emulator)

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

emulator -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

这篇关于使用AOSP运行多个仿真器时面临的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆