当前位置: 首页 > 知识库问答 >
问题:

Android模拟器错误消息:“恐慌:缺少'x86'CPU的模拟器引擎程序。”

昌博易
2023-03-14

我试图运行一个Android模拟器使用AVD管理器。这是我的AVD:http://image-upload.de/image/fnx79v/52b0d050ee.png

这就是开始时发生的事情:

http://image-upload.de/image/vgpqfa/e912d83939.png

我有一台Macbook Pro视网膜。直接从intel页面安装了Haxm驱动程序。

没有仿真程序在工作。都得到相同的“错误”消息。

运行命令(此错误是在我使用自制程序安装Android-sdk和Android-platform-tools时出现的,任何遇到相同问题的人都应该删除此错误或查找冲突所在)

export ANDROID_EMULATOR_DEBUG=1 test20

emulator:Found AVD name 'test20'
emulator:Found AVD target architecture: x86
emulator:Looking for emulator-x86 to emulate 'x86' CPU
emulator:Probing program: ./emulator-x86
emulator:Probing path for: emulator-x86
emulator:Found target-specific emulator binary: /usr/local/bin/emulator-x86
emulator:Probing for: /usr/local/bin/libOpenglRender.dylib
emulator:Probing for: /usr/local/bin/lib/libOpenglRender.dylib
emulator:Probing for: /usr/local/lib/libOpenglRender.dylib
emulator:Probing for: /usr/local/bin/lib64OpenglRender.dylib
emulator:Probing for: /usr/local/bin/lib/lib64OpenglRender.dylib
emulator:Probing for: /usr/local/lib/lib64OpenglRender.dylib
emulator:Could not find OpenGLES emulation host libraries!
emulator: ERROR: This AVD's configuration is missing a kernel file!!

emulator -avd test21
emulator:Found AVD name 'test21'
emulator:Found AVD target architecture: x86_64
emulator:Looking for emulator backend for x86_64 CPU
emulator:Probing program: ./emulator-x86_64
emulator:Probing path for: emulator-x86_64
emulator:Looking for emulator-x86 to emulate 'x86_64' CPU
emulator:Probing program: ./emulator-x86
emulator:Probing path for: emulator-x86
PANIC: Missing emulator engine program for 'x86_64' CPUS.

在我修复了自制的问题之后:

emulator64-x86 -avd test20
Creating filesystem with parameters:
    Size: 69206016
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 4224
    Inode size: 256
    Journal blocks: 1024
    Label: 
    Blocks: 16896
    Block groups: 1
    Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
emulator: ERROR: Could not load OpenGLES emulation library: dlopen(lib64OpenglRender.dylib, 1): image not found
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
HAX is working and emulator runs in fast virt mode
qemu: could not load PC BIOS 'bios.bin'
export ANDROID_EMULATOR_DEBUG=1 emulatorName
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ANDROID_HOME/tools/lib

当出现错误“QEMU:不能加载PC BIOS'BIOS.bin'”时,一个修复方法是使用完整路径运行模拟器:

/Applications/Android\ Studio.app/sdk/tools/emulator64-x86 -avd test20
In your case it is maybe a other path.

共有1个答案

子车飞文
2023-03-14

如果您使用的是macOS,请将Android SDKemulatortools目录添加到以下路径:

步骤1:在我的例子中,顺序很重要,首先是emulator,然后是tools

export ANDROID_SDK=$HOME/Library/Android/sdk
export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH

步骤2:根据操作系统重新加载.bash_profile.bashrc

这是在macOS High Sierra 10.13.4和Android Studio 3.1.2上测试的。

 类似资料:
  • 我有这个科尔多瓦应用程序并尝试运行 但它给了我下面的控制台错误 当我从android工作室检查时,一切似乎都已安装。 下面是我的android工作室信息 我的环境变量 我可以从文件夹位置确认我放置的路径存在,有什么帮助吗?

  • 我正在尝试使用AVD管理器运行一个Android模拟器。这是我的AVD:http://image-upload.de/image/fnx79v/52b0d050ee.png 这就是开始: http://image-upload.de/image/vgpqfa/e912d83939.png 我有一个Macbook Pro视网膜。直接从intel页面安装了Haxm驱动程序。 没有仿真程序在工作。都得到

  • 当我运行命令离子cordova运行android时,它不工作,出现了一个错误,称为“恐慌:缺少'x86'cpu的模拟器引擎程序” 我正在Mac上工作。能给我一个解决方案吗

  • 我试图在Galaxy Nexus上运行我为API16创建的AVD: 这给出了错误 恐慌:缺少“ARM”CPU的模拟器引擎程序。 我已经在SDK管理器中安装了该版本SDK的所有内容: 我已经安装了最新版本的模拟器。我试过卸载和重新安装它。 环境变量似乎设置正确(它与SDK管理器中的相匹配。程序似乎也是该home环境下的程序: 据我所知,模拟器和特定于体系结构的模拟器也位于之下: 我不知道该去哪里找,

  • 我正在尝试在Galaxy Nexus上运行我为API 16创建的AVD: 这会给出错误 恐慌:缺少“ARM”CPU的模拟器引擎程序。 我看过其他有类似问题的帖子。大多数人认为Windows上的Avast导致了这个问题。我在Mac上运行。我没有安装Avast。 AVD具有以下配置: Android Studio环境: 据我所知,仿真器和特定于体系结构的仿真器也在下: 我不知道还有什么地方可以找,要么

  • 以前一切都很正常,但现在当我启动模拟器时,我得到的错误是 恐慌:缺少“arm”CPU的仿真器引擎程序。 这是屏幕截图 我尝试更新sdk管理器,但没有什么要更新的。 额外的一切都安装好了,但是我想这个包裹里缺少了一些东西,但是我不知道如何安装那个。任何建议都将不胜感激。提前感谢。 我还卸载了android sdk工具并重新安装它,但仍然没有运气