android - qemu-system-i386 在 Mac 上启动 AVD(Android 虚拟设备)时意外退出(非法指令 4)

标签 android android-studio android-emulator avd

我在我的 Mac(Macbook Pro,2017 年 8 月,OSX 10.12.4)上安装了 Android Studio,然后启动,创建了一个 hello world 项目并创建了一个 AVD(Android 虚拟设备,Nexus 5)来运行我的项目.

当我尝试在模拟器上运行我的项目(按播放按钮)或当我尝试启动模拟器本身时出现错误。

这是错误的屏幕截图:AVD error

这是堆栈跟踪的开始:

Process:               qemu-system-i386 [5779]
Path:                  /Users/USER/Library/Android/*/qemu-system-i386
Identifier:            qemu-system-i386
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        studio [4683]
Responsible:           qemu-system-i386 [5779]
User ID:               502

Date/Time:             2017-08-22 13:20:02.612 +0100
OS Version:            Mac OS X 10.12.4 (16E195)
Report Version:        12
Anonymous UUID:        A816A6BA-C97F-6831-E59F-1431A005F23C

Sleep/Wake UUID:       48F2FC89-DF11-4A13-ACEB-E81AF10174B0

Time Awake Since Boot: 15000 seconds
Time Since Wake:       7900 seconds

System Integrity Protection: enabled

Crashed Thread:        4

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

Termination Signal:    Illegal instruction: 4
Termination Reason:    Namespace SIGNAL, Code 0x4
Terminating Process:   qemu-system-i386 [5779]

这是完整的堆栈跟踪:https://pastebin.com/raw/Btt2igX4

最佳答案

禁用/卸载 CylancePROTECT 为我解决了这个问题。

sudo launchctl remove com.cylance.agent_service

同样的软件也阻止我编译 go 程序。

一些内存保护是问题的根源。以下是对 CylancePROTECT 进行一些微调的相关文章,可以解决完全卸载软件的问题:runtime: bsdthread_register fatal error (CylancePROTECT)

关于android - qemu-system-i386 在 Mac 上启动 AVD(Android 虚拟设备)时意外退出(非法指令 4),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45835261/

相关文章:

android - 将gms:play-services-auth升级到10.2.0时,任务 ':app:processDebugGoogleServices'的执行失败

java - android中不区分大小写的自动完成

java - 调试在启动时运行的应用程序

Android Studio 应用程序不从主菜单启动,并且单击按钮时崩溃

android - IOS 中的 onSaveInstanceState 是什么?

android-studio - 最好将 IntelliJ 项目转换为 Gradle 还是使用 Android Studio 导入项目?

java - 应用程序在 Debug模式下运行顺利,但在 Release模式下崩溃

android - 显示 “Finished with error: Gradle task assembleDebug failed with exit code 1”。在Android Studio中运行Flutter。该怎么办?

android - 如何将数据从当前 Activity 传递到暂停的 Activity?

android - 在Qt中编译项目时出现错误