HAXM is not working and emulator runs in emulation mode。模拟器停留在开机界面时报的错。

本文介绍了解决HAXM内存配置导致的模拟器运行缓慢的问题。通过重新安装HAXM并调整其内存配置,使得模拟器能够正常运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误如下:HAXM is not working and emulator runs in emulation mode
                    emulator: The memory needed by this AVD exceeds the max specified in your HAXM configuration .
                    emulator: AVD      RAM size = 1024 MB

                    emulator: HAXM max RAM size = 700 MB


1、在安装Android Studio时会选择需要安装的组件,其中有一个Performance(intel®HAXM)的内容。

     

    2、  就按默认的来,接着在后面需要设置大小

     

       它这里默认是512M,第一次安装的时候,我看了一下,说明中有“you can change these settings at any time.”,心里想“后面可以随时改,那就默认的肯定没问题”。

3、启动模拟器时我查看下方的Run窗口AVD页面中的控制台,输出几行语句,其中出现红色的“HAXM is not working and emulator runs in emulation mode”,颜色标识为异常。

       启动的模拟器停留在Android字样的界面不动。开始查找原因。

      【解决过程】

       1.Tools->Android->SDK Manager

     android studio Tools Android SDK Manager

   然后就看到对应的HAXM了:     

android SDK manager intel x86 emulator accelerator HAXM installer

 下载最后一项Intel x86 emulator accelerator(HAXM install.........)

安装完成后记得重新启动Android Studio 查看

如图显示就安装上了,但还是和之前一样,启动模拟器停留在android字样屏幕上,提示错误HAXM is not working and emulator runs in emulation mode。

       emulator: The memory needed by this AVD exceeds the max specified in your HAXM configuration .
       emulator: AVD      RAM size = 1024 MB

        emulator: HAXM max RAM size = 700 MB

 发现AVD的RAM和HAXM的RAM 的size不同,怎么设置新安装的HAXM的 RAM size呢?

Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager这个目录下intelhaxm-android.exe文件,双击重新安装,会提示你设置新的值。(这里就不上图了)


再次启动模拟器  问题解决了。 但还是启动有些慢,继续查查看。。。。





     

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值