具有Android Studio 4.1.1的AVD在Mac OS High Sierra上崩溃,错误为"qemu-system-x86_64意外退出". [英] AVD with Android studio 4.1.1 crashing on mac OS High Sierra with error "qemu-system-x86_64 quit unexpectedly"

查看:244
本文介绍了具有Android Studio 4.1.1的AVD在Mac OS High Sierra上崩溃,错误为"qemu-system-x86_64意外退出".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在mac os High sierra上全新安装了最新的Android Studio,笔记本电脑上没有以前的Android Studio版本.当我尝试运行基本代码时,AVD不断崩溃.

I did a fresh install of latest Android studio on my mac os High sierra, there was no previous version of Android studio on the laptop. AVD keeps crashing when I try to run a basic code.

附有错误快照,我尝试了在不同线程中列出的不同解决方法,尝试了命令行,尝试仅调用avd,仍然是相同的错误.已安装Android 11、10.

Attached is the error snapshot, I tried different workarounds listed in different threads, tried command line, tried to just invoke avd, still the same error. Has Android 11, 10 installed.

下面是错误

Process:               qemu-system-x86_64 [2406]
Path:                  /Users/USER/Library/Android/*/qemu-system-x86_64
Identifier:            qemu-system-x86_64
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        studio [2380]
Responsible:           qemu-system-x86_64 [2406]
User ID:               501

Date/Time:             2020-11-21 13:24:24.625 -0800
OS Version:            Mac OS X 10.13.6 (17G14042)
Report Version:        12
Anonymous UUID:        3F92D280-01FC-0232-0678-BB15A8C21C4E

Sleep/Wake UUID:       DC22FDA6-D97B-44DD-9541-89BE58B903F9

Time Awake Since Boot: 5300 seconds
Time Since Wake:       960 seconds

System Integrity Protection: enabled

Crashed Thread:        10

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty NSArray'
abort() called
terminating with uncaught exception of type NSException

Application Specific Backtrace 1:
0   CoreFoundation                      0x00007fff297edf3b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x00007fff50b46942 objc_exception_throw + 48
2   CoreFoundation                      0x00007fff298079ed -[__NSArray0 objectAtIndex:] + 93
3   libMoltenVK.dylib                   0x000000011e9ef8a7

错误

推荐答案

我遇到了完全相同的问题,并且通过禁用硬件图形渲染解决了这个问题.

I had the exact same problem and I solved it by disabling the hardware graphics rendering.

在AVD管理器中编辑虚拟设备的配置,然后选择显示高级设置"然后选择软件-GLES 2.0"在图形的选项列表中.

Edit the configuration of your virtual device in AVD manager, select "Show advanced settings" and then select "Software - GLES 2.0" in the option list for graphics.

请注意,这只是一个变通方法,而不是真正的解决方案,因为现在模拟器可以运行,但运行速度非常慢.

Note that it is only a work-around, not a real solution because now the emulator will run but very very slowly.

更改在AVD管理器中进行图形渲染的选项

这篇关于具有Android Studio 4.1.1的AVD在Mac OS High Sierra上崩溃,错误为"qemu-system-x86_64意外退出".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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