You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安卓模拟器无法运行,重装HAXM后出现CoreAudio相关报错求助

Fixing Android Emulator Issues on Mac (HAXM Mismatch + CoreAudio Error)

Hey there, let's work through this Android emulator problem on your Mac step by step. I've dealt with similar quirks before, so here's a breakdown of fixes to try:

First: Resolve the HAXM Version Mismatch Warning

Even though you installed HAXM 6.2.1, the emulator might be picking up an older leftover kernel extension. Let's verify and fix that:

  • Check active HAXM version: Open Terminal and run:
    kextstat | grep intel
    
    Look for intelhaxm.kext in the output—this shows the actual loaded version. If it's still 6.0.5, we need to clean up the old install.
  • Manually uninstall old HAXM: Run this command in Terminal (you'll need your admin password):
    sudo /Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh
    
  • Restart your Mac, then reinstall HAXM 6.2.1: Either use Android Studio's SDK Manager (under "SDK Tools"), or download the official HAXM package directly and run the installer manually.

Next: Fix the CoreAudio & "Invalid Argument" Errors

After reinstalling HAXM, the new errors are likely tied to audio device access or emulator configuration. Try these steps:

  • Grant microphone permissions to Android Studio: Open Mac System Settings → Privacy & Security → Microphone. Make sure Android Studio is checked (if not, enable it and restart the app).
  • Close other audio-using apps: Apps like Zoom, Slack calls, or browser audio streams can lock your audio input device. Quit all such apps, then try launching the emulator again.
  • Adjust emulator audio settings:
    1. Open Android Studio's AVD Manager.
    2. Click the pencil icon to edit your emulator.
    3. Scroll to Show Advanced Settings.
    4. Under "Audio Input" and "Audio Output", try switching to a different device, or temporarily set both to None to bypass audio entirely. Save the changes and launch the emulator.
  • Verify hardware acceleration: In the same AVD edit screen, check that "Emulated Performance" is set to Hardware - GLES 2.0. This ensures HAXM is being used properly.
  • Create a fresh AVD: Sometimes old emulator configs get corrupted. Make a new AVD with a default system image (like a Pixel device with the latest Android version) and test if it runs without errors.

Let me know if any of these steps get your emulator up and running—happy to troubleshoot further if you still hit snags!

内容的提问来源于stack exchange,提问作者jazzbpn

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 07:01:25