模拟器总是因错误“等待设备时出错:AVD 的模拟器进程已终止"而崩溃 [英] Emulator always crashes with error "Error While waiting for device: The emulator process for AVD has terminated"

查看:476
本文介绍了模拟器总是因错误“等待设备时出错:AVD 的模拟器进程已终止"而崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在被困在假设它的硬件上,但没有太多意义,因为它以前可以工作,只是突然停止了.

I'm now stuck assuming its hardware, but wouldn't make too much sense as it used to work before, and just stopped out of nowhere.

昨天一整天,当我尝试在任何设备、任何 API、任何应用程序(包括仅打开模拟器)上打开模拟器时,我收到此崩溃消息.

Yesterday the whole day, when trying to open emulator on any device, in any api, in any app (including opening just the emulator by itself), I get This crash message.

我尝试卸载和安装 android studio,但没有奏效.我最终完全格式化了我的电脑,并再次安装了 AS.该错误在前 3 次运行中仍然存在,在创建运行 api 28 的设备后,它显示此错误(我以前遇到过).以前看的时候还能运行,现在黑屏了.

I've tried uninstalling and installing android studio, and didn't work. I ended up fully formatting my pc, and installing AS again. The error persisted in the first 3 runs, and after creating a device running api 28, it shows This error (that I have had before). When I used to see it, I would still be able to run the app, but now it was just a black screen.

我发现即使我安装了最新推荐的 AS 版本,它也没有附带 abd.exe.我下载了 plstform-tools.zip,在我的 sdk 文件夹中添加所有内容时,avd 停止工作.我决定只添加 abd.exe 文件.Avd 再次打开,但屏幕仍然黑屏.

I found out that even though I installed the latest recommended version of AS, it didn't come with abd.exe. I downloaded the plstform-tools.zip, and when adding everything inside my sdk folder, avd stopped working. I decided to only add instead, the abd.exe file. Avd opened again, but the screen still stayed black.

我正在运行 amd Radeon 7500,所以我决定尝试一个运行 ARM64 的模拟器.模拟器永远加载,但永远不会打开.

I'm running amd Radeon 7500, so I decided to try an emulator running ARM64. The emulator just loads forever, but never opens up.

现在,当我尝试运行 api 29 或 30 时,不会像往常一样收到相同的崩溃消息,我只会弹出一个说模拟器已终止的消息,并在控制台日志中显示等待时出错"设备:avd 的模拟器进程被杀死"

Right now, when I try to run api 29 or 30, instead of getting the same crash message as usual, I will just get a pop up saying the emulator was terminated, and shows in console log "error while waiting for the device: emulator proccess for avd was killed"

补充:出于某种随机原因,我今天和昨天的所有安装都没有包含卸载程序

To add: for some random reason, all my installations today and yesterday, did not include an uninstall.exe

我尝试使用 CMD 打开模拟器,得到的错误是

I tried opening emulator using CMD, and the error I get is

"无法添加库vulkan-1.dll:失败

"cannot add library vulkan-1.dll: failed

无法添加库 vulkan-1.dll:失败"

cannot add library vulkan-1.dll: failed"

我在网上看到过这个错误,但似乎它通常会显示一个额外的行,上面写着模拟器以退出代码终止";我的没有.

I have seen this error online, but seems like it usually shows an extra line saying "Emulator terminated with exit code" Mine does not have that.

我也尝试过在软件模式下使用模拟性能

I also have tried using Emulated performance in Software mode

推荐答案

Reddit 的某人能够帮助我:

Someone at Reddit was able to help me:

对于将来卡在这里的任何人,试试这个:

for anyone that gets stuck here in the future, try this:

打开 c:\Users(user name).Android 并创建一个名为advancedFeatures.ini"的文件.在这个文件中,写:

open c:\Users(user name).Android and create a file called "advancedFeatures.ini". In this file, write:

Vulkan = 关闭

Vulkan = off

GLDirectMem = 开启

GLDirectMem = on

这篇关于模拟器总是因错误“等待设备时出错:AVD 的模拟器进程已终止"而崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆