Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

HAXM Installation Fails on Mac #403

Open
batoolan opened this issue Aug 25, 2021 · 69 comments
Open

HAXM Installation Fails on Mac #403

batoolan opened this issue Aug 25, 2021 · 69 comments

Comments

@batoolan
Copy link

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:
Screen Shot 2021-08-25 at 3 53 39 PM

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

  • HAXM version: 7.6.5
  • Host OS version: macOS Catalina 10.15.7
  • Host OS architecture: x86_64
  • Host CPU model: Intel Core i7
  • Host RAM size: 16 GB
  • (Optional) Host computer model: MacBook Pro
@batoolan
Copy link
Author

output of ./checktool --verbose:
Screen Shot 2021-08-25 at 5 46 42 PM

@wcwang
Copy link
Contributor

wcwang commented Aug 26, 2021

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.

@dipendra-sharma
Copy link

Any other solution?

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.

@wcwang
Copy link
Contributor

wcwang commented Sep 22, 2021

As far as I know, HVF will be the only hypervisor solution for macOS Catalina 10.15.

@nevilad
Copy link
Contributor

nevilad commented Sep 23, 2021

@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?

@wcwang
Copy link
Contributor

wcwang commented Sep 24, 2021

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.

@nevilad
Copy link
Contributor

nevilad commented Sep 24, 2021

Will be macOS 15 and higher support added to haxm?

@wcwang
Copy link
Contributor

wcwang commented Sep 25, 2021

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.

@viertelb
Copy link

viertelb commented Oct 3, 2021

Any other solution?

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.

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.

Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)".
Warning: Package "com.android.repository.impl.generated.v2.RemotePackage@44b0bc2c" (extras;intel;Hardware_Accelerated_Execution_Manager) should be installed in 
"/Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager" but 
it already exists.
Installing in "/Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2" instead.
Downloading https://dl.google.com/android/repository/extras/intel/haxm-macosx_v7_6_5.zip
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" ready.
Installing Intel x86 Emulator Accelerator (HAXM installer) in /Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" complete.
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" finished.
Parsing /Users/ben/Library/Android/sdk/build-tools/31.0.0/package.xml
Parsing /Users/ben/Library/Android/sdk/cmake/3.18.1/package.xml
Parsing /Users/ben/Library/Android/sdk/cmdline-tools/latest/package.xml
Parsing /Users/ben/Library/Android/sdk/emulator/package.xml
Parsing /Users/ben/Library/Android/sdk/extras/google/auto/package.xml
Parsing /Users/ben/Library/Android/sdk/extras/google/google_play_services/package.xml
Parsing /Users/ben/Library/Android/sdk/extras/google/instantapps/package.xml
Parsing /Users/ben/Library/Android/sdk/extras/google/market_apk_expansion/package.xml
Parsing /Users/ben/Library/Android/sdk/extras/google/market_licensing/package.xml
Parsing /Users/ben/Library/Android/sdk/extras/google/simulators/package.xml
Parsing /Users/ben/Library/Android/sdk/extras/google/webdriver/package.xml
Parsing /Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/package.xml
Parsing /Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2/package.xml
Warning: Observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in inconsistent location '/Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2' (Expected '/Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager')
Warning: Already observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in '/Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager'. Skipping duplicate at '/Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2'
Parsing /Users/ben/Library/Android/sdk/ndk/23.0.7599858/package.xml
Parsing /Users/ben/Library/Android/sdk/patcher/v4/package.xml
Parsing /Users/ben/Library/Android/sdk/platform-tools/package.xml
Parsing /Users/ben/Library/Android/sdk/platforms/android-30/package.xml
Parsing /Users/ben/Library/Android/sdk/skiaparser/1/package.xml
Parsing /Users/ben/Library/Android/sdk/skiaparser/2/package.xml
Parsing /Users/ben/Library/Android/sdk/sources/android-30/package.xml
Parsing /Users/ben/Library/Android/sdk/system-images/android-30/google_apis/x86/package.xml
Parsing /Users/ben/Library/Android/sdk/tools/package.xml
Android SDK is up to date.
Unable to install Intel® HAXM
HAXM can only be installed on Windows or Mac.
Please file a bug against Android Studio.
Done


Packages to install: 
- Intel x86 Emulator Accelerator (HAXM installer) (extras;intel;Hardware_Accelerated_Execution_Manager)

Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)".
Downloading https://dl.google.com/android/repository/extras/intel/haxm-macosx_v7_6_5.zip
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" ready.
Installing Intel x86 Emulator Accelerator (HAXM installer) in /Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" complete.
Failed to update status to COMPLETE
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" failed.
Failed packages:
- Intel x86 Emulator Accelerator (HAXM installer) (extras;intel;Hardware_Accelerated_Execution_Manager)

idea.log:

2021-10-03 21:35:47,368 [ 986765]   INFO - ectedPackagesStep$CustomLogger - Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)". 
2021-10-03 21:35:47,381 [ 986778]   INFO - ectedPackagesStep$CustomLogger - Downloading https://dl.google.com/android/repository/extras/intel/haxm-macosx_v7_6_5.zip 
2021-10-03 21:35:47,823 [ 987220]   INFO - ectedPackagesStep$CustomLogger - "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" ready. 
2021-10-03 21:35:47,828 [ 987225]   INFO - ectedPackagesStep$CustomLogger - Installing Intel x86 Emulator Accelerator (HAXM installer) in /Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager 
2021-10-03 21:35:47,830 [ 987227]   INFO - ectedPackagesStep$CustomLogger - "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" complete. 
2021-10-03 21:35:50,092 [ 989489]   INFO - ard.VmWizard$SetupProgressStep - Preparing "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)". 
2021-10-03 21:35:50,094 [ 989491]   INFO - ard.VmWizard$SetupProgressStep - "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" ready. 
2021-10-03 21:35:50,097 [ 989494]   INFO - ard.VmWizard$SetupProgressStep - "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" complete. 
2021-10-03 21:35:50,098 [ 989495]   INFO - ard.VmWizard$SetupProgressStep - "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" finished. 
2021-10-03 21:35:50,113 [ 989510]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/build-tools/31.0.0/package.xml 
2021-10-03 21:35:50,122 [ 989519]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/cmake/3.18.1/package.xml 
2021-10-03 21:35:50,130 [ 989527]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/cmdline-tools/latest/package.xml 
2021-10-03 21:35:50,140 [ 989537]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/emulator/package.xml 
2021-10-03 21:35:50,148 [ 989545]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/extras/google/auto/package.xml 
2021-10-03 21:35:50,156 [ 989553]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/extras/google/google_play_services/package.xml 
2021-10-03 21:35:50,164 [ 989561]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/extras/google/instantapps/package.xml 
2021-10-03 21:35:50,172 [ 989569]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/extras/google/market_apk_expansion/package.xml 
2021-10-03 21:35:50,180 [ 989577]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/extras/google/market_licensing/package.xml 
2021-10-03 21:35:50,188 [ 989585]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/extras/google/simulators/package.xml 
2021-10-03 21:35:50,196 [ 989593]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/extras/google/webdriver/package.xml 
2021-10-03 21:35:50,204 [ 989601]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2/package.xml 
2021-10-03 21:35:50,207 [ 989604]   WARN - ard.VmWizard$SetupProgressStep - Observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in inconsistent location '/Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2' (Expected '/Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager') 
2021-10-03 21:35:50,207 [ 989604]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/ndk/23.0.7599858/package.xml 
2021-10-03 21:35:50,215 [ 989612]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/patcher/v4/package.xml 
2021-10-03 21:35:50,224 [ 989621]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/platform-tools/package.xml 
2021-10-03 21:35:50,232 [ 989629]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/platforms/android-30/package.xml 
2021-10-03 21:35:50,239 [ 989636]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/skiaparser/1/package.xml 
2021-10-03 21:35:50,247 [ 989644]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/skiaparser/2/package.xml 
2021-10-03 21:35:50,255 [ 989652]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/sources/android-30/package.xml 
2021-10-03 21:35:50,263 [ 989660]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/system-images/android-30/google_apis/x86/package.xml 
2021-10-03 21:35:50,272 [ 989669]   INFO - ard.VmWizard$SetupProgressStep - Parsing /Users/ben/Library/Android/sdk/tools/package.xml 
2021-10-03 21:37:28,548 [1087945]   INFO - tools.idea.sdk.wizard.VmWizard - Preparing "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)". 
2021-10-03 21:37:28,551 [1087948]   INFO - tools.idea.sdk.wizard.VmWizard - "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" ready. 
2021-10-03 21:37:28,553 [1087950]   INFO - tools.idea.sdk.wizard.VmWizard - "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" complete. 
2021-10-03 21:37:28,554 [1087951]   INFO - tools.idea.sdk.wizard.VmWizard - "Uninstall Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" finished. 
2021-10-03 21:37:28,570 [1087967]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/build-tools/31.0.0/package.xml 
2021-10-03 21:37:28,578 [1087975]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/cmake/3.18.1/package.xml 
2021-10-03 21:37:28,586 [1087983]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/cmdline-tools/latest/package.xml 
2021-10-03 21:37:28,593 [1087990]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/emulator/package.xml 
2021-10-03 21:37:28,601 [1087998]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/extras/google/auto/package.xml 
2021-10-03 21:37:28,609 [1088006]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/extras/google/google_play_services/package.xml 
2021-10-03 21:37:28,617 [1088014]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/extras/google/instantapps/package.xml 
2021-10-03 21:37:28,624 [1088021]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/extras/google/market_apk_expansion/package.xml 
2021-10-03 21:37:28,632 [1088029]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/extras/google/market_licensing/package.xml 
2021-10-03 21:37:28,640 [1088037]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/extras/google/simulators/package.xml 
2021-10-03 21:37:28,647 [1088044]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/extras/google/webdriver/package.xml 
2021-10-03 21:37:28,655 [1088052]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/ndk/23.0.7599858/package.xml 
2021-10-03 21:37:28,663 [1088060]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/patcher/v4/package.xml 
2021-10-03 21:37:28,670 [1088067]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/platform-tools/package.xml 
2021-10-03 21:37:28,678 [1088075]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/platforms/android-30/package.xml 
2021-10-03 21:37:28,685 [1088082]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/skiaparser/1/package.xml 
2021-10-03 21:37:28,693 [1088090]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/skiaparser/2/package.xml 
2021-10-03 21:37:28,701 [1088098]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/sources/android-30/package.xml 
2021-10-03 21:37:28,708 [1088105]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/system-images/android-30/google_apis/x86/package.xml 
2021-10-03 21:37:28,716 [1088113]   INFO - tools.idea.sdk.wizard.VmWizard - Parsing /Users/ben/Library/Android/sdk/tools/package.xml 
2021-10-03 21:37:28,749 [1088146]   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)

EDIT: Just as a sidenote, I was able to install HAXM 7.7 via brew install --cask intel-haxm. The emulator starts in AS, but closes immediately. This is the same behaviour I had before, when HAXM 7.6.5 was shown as installed in AS.

@hannesa2
Copy link

hannesa2 commented Oct 13, 2021

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.

image

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-

@yanshouwang
Copy link

See this on macOS Monterey when install HAXM with Android Studio,is there any progress on this?

@skakanou
Copy link

skakanou commented Nov 2, 2021

Hello
Je rencontre le meme probleme depuis mon Macbook Pro 2012, MacOS High Sierra (10.13)
Quelqu'un a une idee de comment resoudre ce probleme?
img

@MicaelaAndrade
Copy link

See this on macOS Monterey when install HAXM with Android Studio,is there any progress on this?

I have the same problem

@w0o
Copy link

w0o commented Nov 5, 2021

Hi team,
Getting this on a Big Sur installation, wasted time reading this thread here and wanted to provide a summary and conclusion.

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".

Warning: Observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in inconsistent location '/Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2' (Expected '/Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager')
Warning: Already observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in '/Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager'. Skipping duplicate at '/Users/ben/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2'

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;
If you want to stay in the game and keep Android developers on Mac (check install numbers vs Windows!) testing with Intel CPUs, invest in the right places!
Without proper support on OSX there would be no more developers testing their apps on Intel CPUs, hence there would be less and less demand for Mac with Intel CPUs and less Android apps tested & published for x86 -this is just common sense.

That's all folks.

@narthanaj
Copy link

also i have same problem Mac OS monterey :/

@davidshulman
Copy link

davidshulman commented Nov 6, 2021

2021-11-06 at 11 37

2021-11-06 at 11 39

same error despite being on Mojave. ANY IDEAS how to fix ??

@abuabdirohman4
Copy link

2021-11-06 at 11 37

2021-11-06 at 11 39

same error despite being on Mojave. ANY IDEAS how to fix ??

Same with me

@NgyAnthony
Copy link

NgyAnthony commented Nov 7, 2021

https://github.com/intel/haxm/wiki/Installation-Instructions-on-macOS

I managed to install it on MacOS, here are the steps:

  • Download the HAXM MacOS archive at https://github.com/intel/haxm/releases
  • Open your terminal, and go to the extracted archive
  • Run sudo ./silent_install.sh
  • If the installation succeeded, go to ~/Library/Extensions and run kextload intelhaxm.kext
  • You may need to allow the execution by going into System Preferences > Security and restart your computer.
  • Check that the extension is activated by running kextstat | grep intel, it should show something like
    204 0 [...] 0x20000 0x20000 com.intel.kext.intelhaxm (7.7.0)

I don't know if haxm works but at least the extension is activated...

@davidshulman
Copy link

https://github.com/intel/haxm/wiki/Installation-Instructions-on-macOS

I managed to install it on MacOS, here are the steps:

  • Download the HAXM MacOS archive at https://github.com/intel/haxm/releases
  • Open your terminal, and go to the extracted archive
  • Run sudo ./silent_install.sh
  • If the installation succeeded, go to ~/Library/Extensions and run kextload intelhaxm.kext
  • You may need to allow the execution by going into System Preferences > Security and restart your computer.
  • Check that the extension is activated by running kextstat | grep intel, it should show something like
    204 0 [...] 0x20000 0x20000 com.intel.kext.intelhaxm (7.7.0)

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 :
$ kextstat | grep intel
185 0 0xffffff7f85210000 0x29000 0x29000 com.intel.kext.intelhaxm (7.7.0) 1AD4D0E8-B538-3A89-B906-70B00FABCD8D <8 6 5 3 1>

still cant use Android emulator...

@w0o
Copy link

w0o commented Nov 8, 2021

@davidshulman @NgyAnthony you can get the same results with

brew install intel-haxm

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.

@davidshulman
Copy link

davidshulman commented Nov 8, 2021

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.

@hanggrian
Copy link

@davidshulman @NgyAnthony you can get the same results with

brew install intel-haxm

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.

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 unable to locate adb everytime I start an AVD. Other than that, everything works fine.

@shoopi12
Copy link

I also installed haxm using brew as suggested in this thread.
Android studio shows haxm as not installed.
How do I know if haxm is being used when I'm using Android Emulator?

@hanggrian
Copy link

hanggrian commented Nov 10, 2021

@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.

@Esarve
Copy link

Esarve commented Nov 18, 2021

is there any good alternative on macOS? Does gennymotion supports hardware acceleration on macs?

@wcwang
Copy link
Contributor

wcwang commented Nov 18, 2021

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.

@francisleigh
Copy link

@wcwang What can i do? I'm on Monteray and unable to spin up a emulator...pretty much blocking me entirely.

@wcwang
Copy link
Contributor

wcwang commented Nov 19, 2021

You may create a configuration file at ~/.android/advancedFeatures.ini and put the text HVF = on to enable HVF hypervisor. Thanks.

@francisleigh
Copy link

@wcwang
I ran
touch ~/.android/advancedFeatures.ini
and put HVF = on in it... no dice. emulator still not working.

@francisleigh
Copy link

i've tried many things but still no dice.

@mohqarmout
Copy link

Same here

@rongxin-liu
Copy link

rongxin-liu commented Jan 18, 2022

OS Catalina 10.15.7 I had the same issue after updating to latest version of Android Studio (2020.3.1). After that I had issues with Emulators, they were not running. I decided to remove everything and reinstall from scratch. Stuck on HAXM installation. But, the problem is that HAXM installed/worked perfectly before, so I uninstalled current Studio and installed Android Studio 4.2.2 Guess what? HAXM has installed without any issues. Emulator for Android 11 works fine...

Same here, using Android Studio 4.2.2 worked for me. I have Monterey.

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:
https://developer.android.com/studio/archive

@elizeu-freitas
Copy link

@rongxin-liu
Thanks for the tip.
I got the same error, and this version of Android Studio worked for me.

@lywinged
Copy link

Android Studio 4.2.2 is the solution.
But if you manually downloaded and installed HAXM with sudo ./silent_install.sh before, you have to uninstall with sudo kextunload -b com.intel.kext.intelhaxm.

@andreluizreis
Copy link

Android Studio Bumblebee 2021.1.1 doesn't work (Mac OS Big Sur). I gave up on using Android Studio emulators.

@lywinged
Copy link

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.

@wcwang
Copy link
Contributor

wcwang commented Jan 27, 2022

Thanks for your feedback. Could you try to create a configuration file ~/.android/advancedFeatures.ini and put the text HVF = on to enable HVF hypervisor. Thanks.

@amitvrm036
Copy link

amitvrm036 commented Jan 27, 2022

try installing haxm from terminal like this

sudo sdkmanager --install "extras;intel;Hardware_Accelerated_Execution_Manager"

you might need to give full path of sdkmanager in place of "sdkmanager".

@therocket18
Copy link

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.

@leobastin
Copy link

leobastin commented Feb 10, 2022

HAXM fails on MacOS Monterey + Android Studio Bumblebee

Android Studio Bumblebee | 2021.1.1 Patch 1
Build #AI-211.7628.21.2111.8139111, built on February 2, 2022
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: com.intellij.plugins.vscodekeymap (211.4961.30), Dart (211.7798), org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40), io.flutter (64.0.2)

Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)".
Warning: Package "com.android.repository.impl.generated.v2.RemotePackage@44b0bc2c" (extras;intel;Hardware_Accelerated_Execution_Manager) should be installed in
"/Users/leobastin/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager" but
it already exists.
Installing in "/Users/leobastin/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2" instead.
Downloading https://dl.google.com/android/repository/extras/intel/haxm-macosx_v7_6_5.zip
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" ready.
Installing Intel x86 Emulator Accelerator (HAXM installer) in /Users/leobastin/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" complete.
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" finished.
Parsing /Users/leobastin/Library/Android/sdk/build-tools/31.0.0/package.xml
Parsing /Users/leobastin/Library/Android/sdk/build-tools/32.0.0/package.xml
Parsing /Users/leobastin/Library/Android/sdk/emulator/package.xml
Parsing /Users/leobastin/Library/Android/sdk/extras/google/google_play_services/package.xml
Parsing /Users/leobastin/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/package.xml
Parsing /Users/leobastin/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2/package.xml
Warning: Observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in inconsistent location '/Users/leobastin/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2' (Expected '/Users/leobastin/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager')
Warning: Already observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in '/Users/leobastin/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager'. Skipping duplicate at '/Users/leobastin/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2'
Parsing /Users/leobastin/Library/Android/sdk/patcher/v4/package.xml
Parsing /Users/leobastin/Library/Android/sdk/platform-tools/package.xml
Parsing /Users/leobastin/Library/Android/sdk/platforms/android-31/package.xml
Parsing /Users/leobastin/Library/Android/sdk/platforms/android-32/package.xml
Parsing /Users/leobastin/Library/Android/sdk/sources/android-31/package.xml
Parsing /Users/leobastin/Library/Android/sdk/system-images/android-31/default/x86_64/package.xml
Parsing /Users/leobastin/Library/Android/sdk/system-images/android-31/google_apis/x86_64/package.xml
Parsing /Users/leobastin/Library/Android/sdk/system-images/android-31/google_apis_playstore/x86_64/package.xml
Parsing /Users/leobastin/Library/Android/sdk/system-images/android-32/google_apis/x86_64/package.xml
Parsing /Users/leobastin/Library/Android/sdk/system-images/android-32/google_apis_playstore/x86_64/package.xml
Parsing /Users/leobastin/Library/Android/sdk/tools/package.xml
Android SDK is up to date.
Unable to install Intel® HAXM
HAXM can only be installed on Windows or Mac.
Please file a bug against Android Studio.
Done

Packages to install:

  • Intel x86 Emulator Accelerator (HAXM installer) (extras;intel;Hardware_Accelerated_Execution_Manager)

Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)".
Downloading https://dl.google.com/android/repository/extras/intel/haxm-macosx_v7_6_5.zip
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" ready.
Installing Intel x86 Emulator Accelerator (HAXM installer) in /Users/leobastin/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" complete.
Failed to update status to COMPLETE
"Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5)" failed.
Failed packages:

  • Intel x86 Emulator Accelerator (HAXM installer) (extras;intel;Hardware_Accelerated_Execution_Manager)

@ismaelgansonre
Copy link

ismaelgansonre commented Feb 11, 2022

You need to downgrade your Android studio version to 4.2 or 4.0
I got same issues but just downgrade solve my problem

@JanithaR
Copy link

You need to downgrade your Android studio version to 4.2 or 4.0 I got same issues but just downgrade solve my problem

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?

@ismaelgansonre
Copy link

You need to downgrade your Android studio version to 4.2 or 4.0 I got same issues but just downgrade solve my problem

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

@therocket18
Copy link

Well its working... sadly unsure exactly what happened but both my iMacs are rocking
Mac OS 1
Big Sur
11.6
Radeon Pro 8GB

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.
Back to the usual Mac Experience I hope.
I can always boot up the commodore for a good ol guru meditation error to rest my soul.

@therocket18
Copy link

And thanks for the responses btw!

@elitenerd
Copy link

brew install --cask intel-haxm

Thanks a lot !!

@Azx46
Copy link

Azx46 commented Feb 19, 2022

You need to downgrade your Android studio version to 4.2 or 4.0 I got same issues but just downgrade solve my problem

yep 100% working on catalina. Thanks Brother.

@TayfunCesur
Copy link

TayfunCesur commented Mar 24, 2022

OS Catalina 10.15.7 I had the same issue after updating to latest version of Android Studio (2020.3.1). After that I had issues with Emulators, they were not running. I decided to remove everything and reinstall from scratch. Stuck on HAXM installation. But, the problem is that HAXM installed/worked perfectly before, so I uninstalled current Studio and installed Android Studio 4.2.2 Guess what? HAXM has installed without any issues. Emulator for Android 11 works fine...

Same here, using Android Studio 4.2.2 worked for me. I have Monterey.

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: https://developer.android.com/studio/archive

Thanks for the tip! I solved the issue in my 11.6 Big sur by;

1- Downgrading to 4.2.2
2- installing HAXM (if you get any error while installing in 4.2.2, remove haxm with this command
sudo /Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh )
3- Then I tested and saw HAXM working, my emulator is fast.
4- Upgraded my AS to the latest version
So far everything is fine guys! 🎉

@david1asher
Copy link

OS Catalina 10.15.7 I had the same issue after updating to latest version of Android Studio (2020.3.1). After that I had issues with Emulators, they were not running. I decided to remove everything and reinstall from scratch. Stuck on HAXM installation. But, the problem is that HAXM installed/worked perfectly before, so I uninstalled current Studio and installed Android Studio 4.2.2 Guess what? HAXM has installed without any issues. Emulator for Android 11 works fine...

working on macos 12.2.1

@gvillo
Copy link

gvillo commented Apr 17, 2022

try installing haxm from terminal like this

sudo sdkmanager --install "extras;intel;Hardware_Accelerated_Execution_Manager"

you might need to give full path of sdkmanager in place of "sdkmanager".

This works, sdkmanager is located under tools/bin folder (in android sdk folder)

The command should be
sudo ./sdkmanager --install "extras;intel;Hardware_Accelerated_Execution_Manager" and it works ok. Close your android studio before running it

@firodj
Copy link

firodj commented May 12, 2022

try installing haxm from terminal like this

sudo sdkmanager --install "extras;intel;Hardware_Accelerated_Execution_Manager"

you might need to give full path of sdkmanager in place of "sdkmanager".

thanks @amitvrm036 , it works on: MacOS Monterey 12.2.1 + Android Studio Bumblebee 2021.1.1 p3

in my case:

  1. Install/update Android SDK Command-line Tools (latest) for sdkmanager to work. sdkmanager latest will be installed to $HOME/Library/Android/sdk/cmdline-tools/latest/bin.
  2. Using Android Studio Bumblebee Java JRE, set JAVA_HOME to /Applications/Android Studio.app/Contents/jre/Contents/Home before execute sdkmanager

@midou221
Copy link

I encounter this bug in Windows 11
any solution ?!!

@wayne-ma
Copy link
Contributor

I encounter this bug in Windows 11 any solution ?!!

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.

@gabriellend
Copy link

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.

@ThiombianoFabien
Copy link

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?

@ThiombianoFabien
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests