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

问题描述 投票:0回答:1
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

emulator

[我已经更新了我的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  

更新:

当模拟器关闭时,我在事件日志中得到了这个:

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

已讨论此问题here

android android-studio avd avd-manager
1个回答
0
投票

我在Android Studio 3.5.1和Ubuntu上遇到了完全相同的问题。我将模拟器从29.1.12(完美运行)更新为29.2.1。

幸运的是,我有一台装有旧版模拟器(29.1.12)的计算机,因此我从/ root / Android / Sdk / emulator(默认位置)复制了它,然后将其替换。问题是很难找到旧版本的仿真器。如果尝试使用比此版本更旧的版本,则可能无法正常工作,因此必须为29.1.12。我还建议先擦除虚拟设备,然后再启动它。下次,如果您确实要卸载Android Studio并安装以前的版本,请确保删除/ root / Android目录。

© www.soinside.com 2019 - 2024. All rights reserved.