Facing issue in running multiple emulators with AOSP

旧街凉风 提交于 2020-05-17 07:42:24

问题


Problem overview:

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

Command:

Shell1: emulator -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=

Error:

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

Question:

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


回答1:


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

Below commands worked:

Commands:

Shell1:

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

Shell2: (same command to up second emulator)

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

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



来源:https://stackoverflow.com/questions/61347106/facing-issue-in-running-multiple-emulators-with-aosp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!