android studio 模拟器:单击面板按钮会导致模拟器关闭

Kas*_*sra 4 android android-virtual-device android-studio avd-manager

Android Studio 3.5
Build #AI-191.8026.42.35.5791312, built on August 9, 2019
JRE: 1.8.0_202-release-1483-b49-5587405 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-64-generic
Run Code Online (Sandbox Code Playgroud)

模拟器

我已经更新了我的 android studio,之后,当我单击模拟器左侧面板上的任何按钮时,或者甚至当我按下ctrl + M打开开发人员菜单时,模拟器会突然关闭。

到目前为止我测试过的(没有一个有效):

1. installing previous version of android studio
2. choosing another avd
3. choosing another system image (api 28)
4. uninstalling android studio and installing again
5. invalidate/resetting cache  
Run Code Online (Sandbox Code Playgroud)

更新:

当模拟器关闭时,我会在事件日志中看到以下内容:

2:47 PM Emulator: [26918:26918:0924/144702.703700:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

2:47 PM Emulator: Process finished with exit code 1
Run Code Online (Sandbox Code Playgroud)

这个问题已经在这里讨论过

小智 5

您应该能够通过将环境变量 QTWEBENGINE_DISABLE_SANDBOX 设置为 1 来禁用沙箱并解决此问题:

export QTWEBENGINE_DISABLE_SANDBOX=1
Run Code Online (Sandbox Code Playgroud)