问题描述
在我的系统 (ubuntu) 中,当我按下任何模拟器按钮时,它会崩溃。
解决方法
像这样使用
仿真性能::图形:硬件
仿真性能::启动选项:冷启动
仿真性能::多核: 4(在我的系统上最多)
如果软件选项未显示,则
编辑 AVD 的 config.ini 文件。在 Linux 下,它位于 /home/<user>/.android/avd/<AVD-name>/config.ini
下(在我的例子中是 Nexus_5X_API_29.avd
)。
在文本编辑器中更改行
hw.gpu.enabled=no
hw.gpu.mode=auto
要么
hw.gpu.enabled=no
hw.gpu.mode=off
或到
hw.gpu.enabled=yes
hw.gpu.mode=host
即使在 Android Studio 的 Android 虚拟设备管理器中打开,此设置也会保留。它只是在那里不可编辑。
我也试过这个,这是我在另一个 AVD 中发现的:
hw.gpu.enabled=yes
hw.gpu.mode=software