Reputation: 1986
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).
How can I fix this error?
Upvotes: 30
Views: 41835
Reputation: 316
Here is the tip, Just open the android studio and tools -> android SDK and you will see the SDK tools tab. you can select or update. If you see any update make sure you keep them up to date.
Upvotes: 2
Reputation: 2537
So very simple. In your VS > Android Tools > check and install the option > "Intel x86 Emulator Accelerator (XAHM installer)"
Upvotes: 5
Reputation: 3420
You will need to actually install the Intel HAXM in order to use it:
extras\intel\Hardware_Accelerated_Execution_Manager\
intelhaxm-android.exe
Open the HAXM directory
cd $ANDROID_HOME/extras/intel/Hardware_Accelerated_Execution_Manager
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:
*.dmg
file, then run the *.mpkg
contained inside itor
$ ./silent_install.sh
Upvotes: 114
Reputation: 8007
Goto Control Panel > Programs > Programs and Features.
Look for Intel Hardware Accelerated Execution Manager and check its version. In your case it should be 1.1.1 as seen from the error. Uninstall it.
Go to this link (https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager) to download the latest version.
Run silent_install.bat which will install Intel HAXM's latest version. Now your Emulator should be working fine.
Upvotes: 35
Reputation: 79
You could also asign the AVD to use more memory. This boosts it so much:
From Android studio open Windows->Select Android Virtual Device Manager->Chose your device->Click Edit button->Change the RAM parameter to 512 Mb in the Memory Options->Save and run the emulator it will work
Upvotes: -1