Android Studio 2.1.3
I can't seem to update HAXM. Every time I open the AVD, it gives me the following error message:
Virtual machine acceleration driver out-of-date
It then gives me a button to "Reinstall Haxm". Clicking that leads to an installation screen where I can choose the RAM allocation, where I hit Next and it starts installing. I then see it start installing and an extracting dialog flash up and disappear immediately:
It then finishes and says it was updated successfully, but then I hit Finish and it wants me to update again.
I've ensured Hyper-V isn't enabled and that virtualization is enabled in the BIOS. I've also tried installing it manually, and that looks like it all works successfully. And yet, no change in behavior by Android Studio. I have also seen this solution and tried it, with no success.
I can run the ARM EABI v7a emulators; just not the x86 ones. The ARM ones are so slow they're almost unusable, so I'd really like to find a way to fix this!
This machine does have VMWare vSphere installed on it, which is used on a regular basis. Could that be why this is happening?
First a warning. If you have a really old version of HAXM installed, follow their instructions to uninstall the old version before installing the new one.
Before installing latest HAXM, the previous versions from 1.1.4 and
below must be uninstalled using:
sudo /System/Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh
The Intel HAXM installation instructions are confusing and outdated, but this part is correct:
once you have installed the package, the status will appear as
‘Installed’, which is misleading as this is not the case. The SDK
only copies the Intel HAXM executable on your machine, and it is up to
you to install the executable.
I'm using Android Studio 3.0.1 on a Mac (10.11 El Capitan) and have not seem a "Reinstall HAXM" button like you described, but when an emulator is launched I do see this in the Event Log:
Emulator: WARNING: HAXM 6.0.5 is installed. Please install HAXM >= 6.2.1 to fix compatibility issues on Mac.
In SDK Manager -> SDK Tools it says the Intel X86 Emulator Accelerator (HAXM installer) is version 6.2.1. I have updated it via the SDK Manager from previous versions several times in the past but didn't realize the update was not complete.
Solution on Windows: Find the IntelHAXM.exe file and run it.
It might be at C:\Program Files\Android\android-sdk\extras\Intel\Hardware_Accelerated_Execution_Manager\IntelHaxm.exe
Solution on Mac: Find the .dmg file, open it, and double-click on the .mpkg file inside to start the actual installation. It will say the software is already installed. Press OK -> Continue -> Install to "re-install" it (meaning actually to install the newer version).
In my case the .dmg file was found at Users/{username}/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM_6.2.1.dmg
Related
I was previously running an old 4.0.0 install. Now replacing with the latest stable Android Studio Dolphin (seems to be 2021.3.1.17), on a 2015 Macbook Pro running latest Monterey, and it will not start. Nothing happens at all. Trying to run from Terminal ("open -a /Applications/Android\ Studio.app") returns no errors, no output. On first run, MacOS does its verification process, and after confirming I want to run a downloaded file, nothing.
Tried:
I've tried removing all traces in ~/Library/Preferences/..., ~/Library/Caches/..., ~/Library/Application Support/..., ~/Library/Logs/... of previous versions. And removed and installed older stable releases, all the way back to 4.2.2 when it worked. But 4.2.2 is too old for the latest codebase.
Is this hardware related... is there a system requirement that might affect this? (info on the Mac is below) I can't see anything in requirements that should case this. Does anyone know of something else I can try, or check?
This is not my screen capture, but demonstrates the same problem: https://imgur.com/a/HS9ufow
About the Macbook Pro:
It's a 2015 Macbook Pro, so Intel based, and I am definitely downloading the "Mac with Intel chip" version. It's "2.7 GHz Dual-Core Intel Core i5" and 8GB of RAM. I know this isn't new hardware, but I can't see a system requirement that should be a problem.
Additional:
After first having this problem, already Monterey, just one recent update behind, I installed the latest Monterey patch. Following the OS reboot and trying Android Studio again, the splash screen actually did appear, and offered to use the old version's prefs, which I did, but the IDE never opened. Now, even after reboots, and several attempts at installing different versions, nothing.
So, I am trying to work on Android Studio. But I can't install Intel HAXM.
I am running Windows 7 and latest android studio
I tried installing from SDK. It installs perfectly but, then "HAXM device not found".
I tried installing different versions of HAXM manually. But everytime these errors pop up, when I do it manually. The errors:
error1
error2
error3
error4
error5
Things I've tried includes:
Enabling Vt-X in advanced BIOS options
Disabling Hyper-V
Installing update of windows suggested in another thread. Windows6.1-KB3033929-x64.
Tried Driver Signature Enforcement Overrider
I can't even remember anymore.
Please Help
What type is your processor? The problem with HAXM is what can installed if you have a processor is not Intel. for this reason some peaple use a emulators like bluestacks o something similar. Good Day!
When I try run app in Android Studio I get warning:
Emulator: warning: host doesn't support requested feature: CPUID.80000001H:ECX.abm [bit 5]
Does anyone know how to fix it?
I'm working on Linux Mint.
I played with (a pristine chroot of) Ubuntu 16.04 myself now. Without package grub-pc-bin installed, QEMU failed to boot the rescue image saying Could not read from CDROM (code 0004). After sudo apt-get install grub-pc-bin it booted fine. So I enforce use of platform i386-pc in the code now and produce an error if it's found missing.
I consider this ticket fixed. If you still run into issues, please make new tickets (with terminal output, Ubuntu version, and a screenshot of te QEMU window). Thanks!
more...
You can fix this by replacing your CPU to any, that support LZCNT feature. More detailed answer I posted here: Android Virtual Device ERROR on Android Studio
I installed Android Studio and fired up the default emulator (Nexus 5 API 23), but got the following error message:
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.5 < 6.0.1).
It seems that a lot of people already encountered this issue and the solution would be to install Intel x86 Emulator Accelerator, but in my case, it is already installed.
Another thing I read is:
After you download it and make sure you run the setup located in: {SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe
I'm on a 2015 retina Macbook though, so this is not an option.
Also when creating a new Virtual Device, the error message remains the same.
What can I do to get a working emulator?
Thanks in advance!
You should mount and run the IntelHAXM_1.1.4.dmg file located in {SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager
Actually problem is that HAXM is downloaded but not installed.
So you should run executable file and install new version of HAXM.
HAXM path: {SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager
I am using Android Studio in Ubuntu 14.4 lts. While installing certain packages through Sdk Manager, i stopped them, as i realized i didn't need them. After which i could not open the sdk manager altogether.
I tried running it from Android-Studio,
I tried running it from the terminal by entering the installed android folder then Sdk/tools and executing ./android as well as ./android sdk
I tried separately downloading stand-alone sdk tools and tried running it , but that didn't help too
I found such problems already dealt but in Windows, there the path is edited or the java_exe is set.
But i dint find any useful suggestion in case of Linux.
I am finding things really helpless by now. Please help!