-
Notifications
You must be signed in to change notification settings - Fork 882
HAXM Installation Fails on Mac #403
Comments
Thanks for your feedback. Currently, HAXM only supports macOS up to 10.14. Since macOS Catalina 10.15, macOS does not support kernel extension any more. It only support new system extensions instead. You may consider to use HVF on macOS instead. Thanks. |
Any other solution?
|
As far as I know, HVF will be the only hypervisor solution for macOS Catalina 10.15. |
@wcwang does Apple prohibit other hypervisors from running on macOS Catalina? Where did you found this info, can you paste a link to more details? |
Thanks for your inquiry. Apple does not prohibit other hypervisors on macOS Catalina, just because kernel extensions were deprecated. HVF is just an available hypervisor that I know so far. Since Apple Catalina 10.15, macOS stopped the kernel extensions support according to this release notes and the notification. |
Will be macOS 15 and higher support added to haxm? |
Thanks for your question. This requires investigating the new system extensions framework and porting existing modules. Whether to add support for macOS 10.15 depends on future business requirements. Our current development plan is still focused on the Android guest for Windows. Meanwhile, we also welcome contributions from the community. |
I am running an iMac from 2010 with 10.13.6 and I get the exact same issue as OP. I already had HAXM installed on this system (but my emulator was not working well). So I gave it another try, removed HAXM via Android Studio Settings, restarted Android Studio and got this error when trying to install HAXM again.
idea.log:
EDIT: Just as a sidenote, I was able to install HAXM 7.7 via |
I updated my Mac and now I loose hardware acceleration for Android Emulator. Intel, you let your Mac customers, who do Android development, die and accelerate the move to arm64. -sad- |
See this on macOS Monterey when install HAXM with Android Studio,is there any progress on this? |
I have the same problem |
Hi team, TL;DR: fix it or provide a proper warning before installing stating that this isn't supported on the latest Mac OSX anymore and save this repo from endless "me-too" threads or... fix it! First, the error we get is just bad DX and fairly misleading stating that there is another package at an "inconsistent location" before failing the install completely which will just lead to more searches leading here with people posting "I get the same error".
This is just unhelpful at the least and misleading for most devs out there, please update this error or the installation to provide meaningful & clear error message. Secondly, if you cannot afford to support OSX beyond Catalina while Apple OSX still allows legacy extensions by exception please state that on the SDK item info (on the title maybe) so that users don't end up here making this thread endless. Thirdly, if it's completely broken, repair & rebuild it or claim it obsolete; That's all folks. |
also i have same problem Mac OS monterey :/ |
https://github.com/intel/haxm/wiki/Installation-Instructions-on-macOS I managed to install it on MacOS, here are the steps:
I don't know if haxm works but at least the extension is activated... |
I also Installed 7.7 from Intel site using shellscript, apparently it's present : still cant use Android emulator... |
@davidshulman @NgyAnthony you can get the same results with
Just note that brew will also use the latest (7.7.0) version while on the Android Studio side, the latest version is still 7.6.5. |
Update : this not a solution for this issue but workaround to enable emulator somehow. Please look at How to downgrade Android Emulator on macOS. On my end now HAXM 7.7 installed manually, emulator replaced manually as described in the article, launch via command-line/shell script like : ~/Library/Android/sdk/emulator/emulator -avd Pixel28 -verbose -show-kernel -no-snapshot-load . Still current situation is very annoying, there is a real impact on the critical piece of dev tooling. |
I had the same problem as the author in macOS Monterey 12.0.1. Installing HAXM with brew fixed it for me, thank you. However, now I have an alert saying |
I also installed haxm using brew as suggested in this thread. |
@shoopi12 It's all covered in CheckTool README. But honestly, you WILL notice whether or not HAXM is running by the time you boot up AVD. As of Android Studio not showing HAXM not installed in SDK Manager, it's normal because we installed the latest HAXM not via Android Studio. |
is there any good alternative on macOS? Does gennymotion supports hardware acceleration on macs? |
Thanks for your question. HVF is the native hypervisor on macOS, which should be a good alternative one for macOS. Genymotion is based on VirtualBox. It relies on VirtualBox's hardware acceleration solution. |
@wcwang What can i do? I'm on Monteray and unable to spin up a emulator...pretty much blocking me entirely. |
You may create a configuration file at ~/.android/advancedFeatures.ini and put the text |
@wcwang |
i've tried many things but still no dice. |
Same here |
Confirmed that Android Studio 4.2.2 worked. I have Big Sur (version 11.6.2). Android Studio 4.2.2 is available for downloading here: |
@rongxin-liu |
Android Studio 4.2.2 is the solution. |
Android Studio Bumblebee 2021.1.1 doesn't work (Mac OS Big Sur). I gave up on using Android Studio emulators. |
My Android Studio 4.2.2 can’t build app in IOS simulator with Big Sur, so I have to upgrade to Mac OS Monterey. |
Thanks for your feedback. Could you try to create a configuration file ~/.android/advancedFeatures.ini and put the text |
try installing haxm from terminal like this
you might need to give full path of sdkmanager in place of "sdkmanager". |
I have the same issue with a duplicated directory. See pic above Nov 6. 2017 imac intel rad 8gb card. Figured my ios and maybe android was outdated so updating to Montrey, but think that failed the first time. Ended up removing android studio and SDK via terminal. Big mess, may have to start from scratch. |
HAXM fails on MacOS Monterey + Android Studio BumblebeeAndroid Studio Bumblebee | 2021.1.1 Patch 1 Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)". Packages to install:
Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)".
|
You need to downgrade your Android studio version to 4.2 or 4.0 |
What I understand is that the issue is HAXM not being updated to support the latest macOS version and Android Studio is just one way we can install HAXM. How can downgrading the Android Studio is going to help? |
i cannot explain why. but i downgrade my macos version to BigSur and i installed android Studio 4 versions and it's works |
Well its working... sadly unsure exactly what happened but both my iMacs are rocking Android Studio 2021.1.1 Jan 18 2022 Build. It may sadly all have been caused by me attempting to run my package on an regular emulator yet my xml was targeting a xxhdpi emulator that I had deleted?????? Maybe... Anyways. |
And thanks for the responses btw! |
Thanks a lot !! |
yep 100% working on catalina. Thanks Brother. |
Thanks for the tip! I solved the issue in my 11.6 Big sur by; 1- Downgrading to 4.2.2 |
working on macos 12.2.1 |
This works, sdkmanager is located under tools/bin folder (in android sdk folder) The command should be |
thanks @amitvrm036 , it works on: MacOS Monterey 12.2.1 + Android Studio Bumblebee 2021.1.1 p3 in my case:
|
I encounter this bug in Windows 11 |
Hi @midou221 , the installation issue on Windows 11 and Mac is different. Please raise a seperated issue for your win 11 issue and attach more detail info, e.g., PC config, error log. Thanks. |
Just adding my two cents in Oct 2022, I initially got an error about not being able to install the Intel x86 Emulator Accelerator on MacOS 12.5 but then when I clicked out of the error message, it showed as installed in my SDK manager and the emulator does seem to run faster than before so I think it's working. |
Hi all, anyone found an appropriate solution to this? I am on Monterey V12.6 with Android Studio Bumblebee 2021.1.1 Patch 2 and I am still facing the error. Anyone found a trick? |
I have found the solution on my end thanks to @amitvrm036 trick. I just executed the command he advised within the sdkmanager folder and HAXM appears installed within Android Studio |
Describe the Bug
Summary:
I have been trying to install HAXM to my machine through Android Studio but installation repeatedly fails with the following message:
IDE logs show this:
2021-08-25 15:53:16,980 [1149039] INFO - ectedPackagesStep$CustomLogger - Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)". 2021-08-25 15:53:16,993 [1149052] INFO - ectedPackagesStep$CustomLogger - Downloading https://dl.google.com/android/repository/extras/intel/haxm-macosx_v7_6_5.zip 2021-08-25 15:53:17,326 [1149385] INFO - ectedPackagesStep$CustomLogger - "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" ready. 2021-08-25 15:53:17,327 [1149386] INFO - ectedPackagesStep$CustomLogger - Installing Intel x86 Emulator Accelerator (HAXM installer) in /Users/batoolan/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager 2021-08-25 15:53:17,333 [1149392] INFO - ectedPackagesStep$CustomLogger - "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" complete. 2021-08-25 15:53:20,126 [1152185] INFO - ard.VmWizard$SetupProgressStep - Preparing "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)". 2021-08-25 15:53:20,127 [1152186] INFO - ard.VmWizard$SetupProgressStep - "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" ready. 2021-08-25 15:53:20,128 [1152187] INFO - ard.VmWizard$SetupProgressStep - "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" complete. 2021-08-25 15:53:20,128 [1152187] INFO - ard.VmWizard$SetupProgressStep - "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" finished. 2021-08-25 15:53:20,129 [1152188] INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/batoolan/Library/Android/sdk/build-tools/31.0.0/package.xml 2021-08-25 15:53:20,132 [1152191] INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/batoolan/Library/Android/sdk/cmdline-tools/latest/package.xml 2021-08-25 15:53:20,135 [1152194] INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/batoolan/Library/Android/sdk/emulator/package.xml 2021-08-25 15:53:20,138 [1152197] INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/batoolan/Library/Android/sdk/extras/google/auto/package.xml 2021-08-25 15:53:20,141 [1152200] INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/batoolan/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2/package.xml 2021-08-25 15:53:20,148 [1152207] WARN - ard.VmWizard$SetupProgressStep - Observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in inconsistent location '/Users/batoolan/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2' (Expected '/Users/batoolan/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager') 2021-08-25 15:53:20,149 [1152208] INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/batoolan/Library/Android/sdk/patcher/v4/package.xml 2021-08-25 15:53:20,153 [1152212] INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/batoolan/Library/Android/sdk/platform-tools/package.xml 2021-08-25 15:53:20,155 [1152214] INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/batoolan/Library/Android/sdk/platforms/android-31/package.xml 2021-08-25 15:53:20,157 [1152216] INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/batoolan/Library/Android/sdk/tools/package.xml 2021-08-25 15:57:51,765 [1423824] INFO - tools.idea.sdk.wizard.VmWizard - Preparing "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)". 2021-08-25 15:57:51,767 [1423826] INFO - tools.idea.sdk.wizard.VmWizard - "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" ready. 2021-08-25 15:57:51,770 [1423829] INFO - tools.idea.sdk.wizard.VmWizard - "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" complete. 2021-08-25 15:57:51,771 [1423830] INFO - tools.idea.sdk.wizard.VmWizard - "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" finished. 2021-08-25 15:57:51,772 [1423831] INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/batoolan/Library/Android/sdk/build-tools/31.0.0/package.xml 2021-08-25 15:57:51,777 [1423836] INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/batoolan/Library/Android/sdk/cmdline-tools/latest/package.xml 2021-08-25 15:57:51,781 [1423840] INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/batoolan/Library/Android/sdk/emulator/package.xml 2021-08-25 15:57:51,785 [1423844] INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/batoolan/Library/Android/sdk/extras/google/auto/package.xml 2021-08-25 15:57:51,789 [1423848] INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/batoolan/Library/Android/sdk/patcher/v4/package.xml 2021-08-25 15:57:51,793 [1423852] INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/batoolan/Library/Android/sdk/platform-tools/package.xml 2021-08-25 15:57:51,796 [1423855] INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/batoolan/Library/Android/sdk/platforms/android-31/package.xml 2021-08-25 15:57:51,799 [1423858] INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/batoolan/Library/Android/sdk/tools/package.xml 2021-08-25 15:57:51,819 [1423878] WARN - ectedPackagesStep$CustomLogger - Failed to update status to COMPLETE com.android.repository.api.PackageOperation$StatusChangeListenerException: HAXM setup failed! at com.android.tools.idea.sdk.install.VmInstallListener.statusChanged(VmInstallListener.java:63) at com.android.repository.impl.installer.AbstractPackageOperation.updateStatus(AbstractPackageOperation.java:515) at com.android.repository.impl.installer.AbstractPackageOperation.complete(AbstractPackageOperation.java:204) at com.android.tools.idea.sdk.wizard.InstallTask.completePackages(InstallTask.java:185) at com.android.tools.idea.sdk.wizard.InstallTask.run(InstallTask.java:138) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:962) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:472) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:235) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:235) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665) at java.base/java.lang.Thread.run(Thread.java:834) 2021-08-25 15:57:51,823 [1423882] INFO - ectedPackagesStep$CustomLogger - "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" failed. 2021-08-25 15:57:51,823 [1423882] INFO - ectedPackagesStep$CustomLogger - Failed packages: 2021-08-25 15:57:51,823 [1423882] INFO - ectedPackagesStep$CustomLogger - - Intel x86 Emulator Accelerator (HAXM installer) (extras;intel;Hardware_Accelerated_Execution_Manager)
/Users/batoolan/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager directory does not even exist, so I'm not sure why it's complaining about that. It directly creates /Users/batoolan/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2 and even then installation fails.
Host Environment
The text was updated successfully, but these errors were encountered: