运行 AVD 模拟器与终端分离

Run AVD Emulator detached from terminal

这是我们如何可以直接从终端运行 AVD

emulator -list-avds
emulator @Pixel_3a_API_30_x86

但我希望将其分离,以便我可以关闭我的终端并让模拟器仍然 运行ning。我试过 运行 这样的事情:

emulator -d @Pixel_3a_API_30_x86

但是我得到一个错误。谁能告诉我们该怎么做?

尝试 nohup 命令:

Nohup, short for no hang up is a command in Linux systems that keep processes running even after exiting the shell or terminal.

nohup `emulator @Pixel_3a_API_30_x86 &`

此处&将应用程序置于后台。

或者在 Zsh 上。

emulator @Pixel_4_API_31 &|

https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html