Menu
Forum›Xamarin.Forms
![Audio Audio](/uploads/1/2/5/7/125752642/654632117.png)
Quick Links
HAX is not working and emulator runs in emulation mode. Emulator: The memory needed by this VM exceeds the driver limit. Emulator: warning: opening audio input failed. Creating window 61 83 462 820. Emulator: emulator window was out of view and was recentered. I'm having trouble running the Android SDK on both of my Macs running OS X 10.6.2 Snow Leopard. This appears to be a 64-bit vs. 32-bit issue, as Snow Leopard now defaults to 64-bit everything.
edited April 2018 in Xamarin.Forms
Having an issue with the emulator deploying an app. I keep getting an issue that 'there's an incompatibility between HAXM hypervisor and VirtualBox 4.3.30+ which doesn't allow multiple hypervisors to co-exist.'. This is despite the fact I dont even have VirtualBox installed
I am running a newly purchased windows machine and never have installed virtual box.
Have attached screen shots of setup... anyone else run into this issue as I cant make sense of this at the moment.
0
Posts
- Doesn't VirtualBox require Hyper-V?
Google emulators require Hyper-V be turned off. If you use both in your day you will have to turn Hyper-V on/off as needed then reboot. - Well I think when installing Visual Studio/Xamarin visual box gets installed too.You have to device Virtual Box (AVD) or Emurlators on Hyper-V.Like @ClintStLaurent said just turn off Hyper-V on your machine if you dont need.
Or you have to use the Emulators which use Hyper-V instead of Virtual Box. - edited April 2018Hyper-V is turned off. After turning on my machine and checking Hyper-V it was already unchecked.
- To be honest though since I posted this question I have update the Android SDK tools from 25.2.5 to 26.1.1 and installed the new Xamarin Android Device manager. But that also seems to have its own issues right now https://bugzilla.xamarin.com/show_bug.cgi?id=61163
- @LeoJHarris I'll give you a tip that will save you a lot of headache. Use a real device You can't trust any of the emulators. The android ones suck and the iOS one isn't that much better...
- @RaphaelSchindler I will always use a real device over an emulator any day but I cant get every real device for emulator available. I'm actually just wanting to run a tablet emulator as I don't currently own one. I did have the emulators working on my laptop at one one point, it always seems a bit hit and miss with it but it just takes one update for everything to go pear shape - sadly I agree with you though.
- @LeoJHarris I agree you can't have a real device for everything. And setting up the emulators sucks bad.
- @LeoJHarris Any progress on this? I have the exact same error! Please help
- @erva said:
@LeoJHarris Any progress on this? I have the exact same error! Please helpI found the solution for me:
I got HP's latest firmware (including HP Sureclick or something).
When I uninstalled HP SureClick, it started to work again! - @erva
When you say 'HP Firmware' do you mean updated BIOS for your HP computer? - @ClintStLaurent No BIOS changes, i uninstalled HP Sureclick:I noticed this when I disabled some virtulization settings in BIOS that HP SureClick was dependent on virtualization.When I uninstalled HP SureClick and reverted changes in BIOS the emulator started to work again
- USXamarin Team, University, XamUProfessorsXamuraire: device manager, we've addressed most of the issues with the preview and it's now included with both IDEs.We've also released a preview of hyper-v support for android emulators: https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/That should hopefully resolve several of the issues above, let me know if it doesn't.
- edited May 2018@NinaVyedin this issue in this thread I originally opened seems to be specific to Android SDK tools using 25.2.5, then when I updated my Android SDK tools to 26.1.1 to use the latest Android Device Manager I got another error found here: https://developercommunity.visualstudio.com/content/problem/223256/error-creating-avd.htmlCurious to know shouldnt we be using the latest Android SDK tools 26.1.1 rather then 25.2.5 so we can use the latest device manager that requires 26.1.1? https://developer.xamarin.com/guides/android/getting_started/installation/android-emulator/xamarin-emulator-manager/
- USXamarin Team, University, XamUProfessorsXamuraiDevice manager requires SDK tools 26, so it's a step forwards. https://developer.xamarin.com/guides/android/getting_started/installation/android-emulator/xamarin-emulator-manager/ is the device manager I'm referring to, my team built it.As for the issue you linked, we're investigating it but it's likely an issue in the web preview version of the device manager. We now ship the device manager as part of the IDEs - so if you get the latest stable VS or VSfM, you'll also get the latest device manager. Hope that helps!
- @NinaVyedin said:
Device manager requires SDK tools 26, so it's a step forwards. https://developer.xamarin.com/guides/android/getting_started/installation/android-emulator/xamarin-emulator-manager/ is the device manager I'm referring to, my team built it.As for the issue you linked, we're investigating it but it's likely an issue in the web preview version of the device manager. We now ship the device manager as part of the IDEs - so if you get the latest stable VS or VSfM, you'll also get the latest device manager. Hope that helps!The latest AVD manager interface is much better, been using it since beta in January.Spinning up older emulators is much easier now.Thanks. - USXamarin Team, University, XamUProfessorsXamurai0
【背景】
看到:
中
如图:
的
HAX is not working and emulator runs in emulation mode
所以想要去在Android Studio中安装HAX。
注:
之前已经解决过类似问题,不过是在Eclipse+ADT下:
【解决过程】
1.Tools->Android->SDK Manager
然后就看到对应的HAX了:
2.然后过了会,弹出下载对话框:
下载了很多相关的东西:
3.去下载和安装HAX。
然后安装后,显示已安装:
4.结果第二次去运行虚拟机,结果还是同样提示:
C:UsersAdministratorAppDataLocalAndroidsdktoolsemulator.exe -avd Nexus_5_API_21_x86 -netspeed full -netdelay none emulator: device fd:1236 HAX is not working and emulator runs in emulation mode emulator: The memory needed by this VM exceeds the driver limit. emulator: warning: opening audio input failed creating window 61 83 462 820 emulator: emulator window was out of view and was recentered |
关闭Android Studio后重新去试试。
然后果然可以了,显示HAX工作了:
C:UsersAdministratorAppDataLocalAndroidsdktoolsemulator.exe -avd 3_7_WVGA_NexusOne_API_21 -netspeed full -netdelay none emulator: device fd:1204 HAX is working and emulator runs in fast virt mode emulator: warning: opening audio input failed creating window 0 0 480 800 |
【总结】
Android Studio中显示:
HAX is not working and emulator runs in emulation mode
时,去
Tools->Android->SDK Manager
然后选中
Extras->Intel X86 Emulator Accelerator (HAXM installer)
并安装即可。
![Audio Audio](/uploads/1/2/5/7/125752642/654632117.png)
记得如果HAX效果没生效,则试试重启Android Studio试试,或许就可以了。
相对来说:和之前的Eclipse+ADT时代,要先后自己手动下载HAX相关工具并安装和配置,的做法相比,Android Studio中只需要选中并安装即可搞定,要方便多了。
转载请注明:在路上 » 【已解决】Android Studio中提示:HAX is not working and emulator runs in emulation mode