在更新到Android Studio 2后,当我试图运行我的应用程序并选择一个模拟器时,我等待模拟器启动,它突然被杀死。我可以看到模拟器进程几分钟,但从来没有GUI。在Android studio中,我得到了错误

android studio Error while waiting for the device: The emulator process for AVD was killed

即使我在Android Studio之外运行模拟器也会发生这种情况。我试用了Android 6和基于Android 4.4的模拟器。 在Windows 7 x64 PC上运行。类似于另一个StackOverflow帖子被关闭。我尝试了各种ram、VM堆和分辨率设置。


当前回答

对我来说(我在网上看到其他人也遇到了这种情况),这是因为我在后台运行Riot的Vanguard软件。这不足以杀死托盘中的进程(我在Windows上),我必须将其设置为启动时不运行,然后重新启动我的计算机。之后,我就可以正常启动我的虚拟设备了。

其他回答

也许问题是你已经安装Android Studio在一个非默认目录(例如c:\your_pesonal_directory),也许你有你的用户在ascii字符(如papà)为此,Android不能访问ascii目录

要在Win10上解决这个问题:

输入C:\users\你的用户名\ 将.android目录移动到另一个目录示例 C: \ AndroidSDK \ .android 创建环境变量(进入设置并在搜索工具栏中写入环境变量) 并命名为ANDROID_SDK_HOME 选择ANDROID_SDK_HOME的新路径:C:\AndroidSDK\ .android 重启Android Studio

对我来说,OpenGL在我的机器上不起作用似乎是个问题。我修改如下:

转到:工具> Android > AVD管理器 按下你的AVD旁边的“编辑”(铅笔)图标 将“图形”更改为“软件”。

对我来说,我运行的是Arm而不是x86。通过安装正确的镜像(例如x86_64)来解决。

我的案例是:谷歌PLAY。

我的虚拟设备是Pixel 4…… 如图所示,Pixel4有谷歌播放支持,因此它会给出这样的错误:“AVD Pixel4的模拟器进程已被杀死。” 它在Android Studio 4.1.1上给出错误。 因此,我创建了一个新的虚拟设备(Pixel 4XL),并选择“SOFTWARE”来模拟性能…… 因为这个设备没有谷歌播放支持,所以它对我来说是有效的。

解决此错误的最佳5个选项,avd的模拟器进程被杀死

given option are checkpoints, check it out one by one.
Error Solution Option 1
Possiblity:
HAXM may not installed in System
HAXM - Hardware Accelerated Execution Manager
Solution:
SDK Manager > Check for HAXM installer
install it, if HAXM not installed
=======================================

Error Solution Option 2
Possiblity : 
Low disk size to load Emulator
Latest AVD with API level 30+ required approx 7 GB disk space
Solution:
Free space from disk where AVD is located

=======================================
Error Solution Option 3
Possiblity :
Configured AVD API may not available in SDK Manager
As an Example:
if Emulator with API level 30, same package of API 30 should be installed in SDK

Solution:
Install same version of SDK Platfrom from SDK manager,
as same as Emulator – AVD API

=======================================
Error Solution Option 4
Possiblity :
Configuration error in Old AVD 

Solution:
Recreate AVD with latest available update
Help > check for update, if component Android Emulator Update is available, install it
delete older AVD and create Fresh AVD

=======================================
Error Solution Option 5
Possiblity :
Embedded AVD not properly load with available image

Solution:
Launch AVD as independent component,
After success close it and lauch within Android Studio
Emulator inside Android Studio
=======================================

before apply all of above once restart you System, try it.

有关视频支持的更多帮助,请参阅如何修复AVD被杀死 我想它可能对你有帮助。