本文介绍了CPU加速状态:必须更新HAXM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Android Studio中创建了一个新的虚拟设备.当我尝试启动它时,出现以下错误消息:
I create a new virtual device in Android Studio. When I attempt to start it, I get the following error message:
Cannot launch AVD in emulator.
Output:
emulator: WARNING: Increasing RAM size to 1024MB
emulator: WARNING: VM heap size set below hardware specified minimum of 384MB
emulator: WARNING: Setting VM heap size to 384MB
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAXM must be updated (version 1.1.1 < 6.0.1).
如何解决此错误?
推荐答案
您需要实际安装英特尔HAXM才能使用它:
You will need to actually install the Intel HAXM in order to use it:
- 在您的Android SDK文件夹中,找到
extras\intel\Hardware_Accelerated_Execution_Manager\
- 运行
intelhaxm-android.exe
- In your Android SDK folder, look in
extras\intel\Hardware_Accelerated_Execution_Manager\
- Run
intelhaxm-android.exe
Mac
-
打开HAXM目录
Open the HAXM directory
cd $ANDROID_HOME/extras/intel/Hardware_Accelerated_Execution_Manager
,或者,如果未设置$ANDROID_HOME
(例如,如果出现错误没有这样的文件或目录"),请尝试
or, if $ANDROID_HOME
is not set (i.e. if you're getting an error " No such file or directory"), try
cd /Users/$USER/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager
运行安装程序:
Run the installer:
- 安装HAXM
*.dmg
文件,然后运行其中包含的*.mpkg
- Mount the HAXM
*.dmg
file, then run the*.mpkg
contained inside it
或
- 执行
$ ./silent_install.sh
这篇关于CPU加速状态:必须更新HAXM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!