下面是我们如何直接从终端运行 AVD
emulator -list-avds
emulator @Pixel_3a_API_30_x86
但我希望它被分离,这样我就可以关闭我的终端并让模拟器继续运行。我试着运行这样的东西:
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 &`
此处 &
将应用程序置于后台。
关于android - 运行与终端分离的 AVD 模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67722013/