Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/dev/HAX is missing every time I restart my computer

It was all good until a few weeks ago, when I tried to open AVD from Android Studio, and it said HAX is not installed, as shown below:

HAX missing

I went to the extras folder for Android sdk, and reinstalled HAX it says it is already installed, And it would work after a reinstallation, as shown below:

already installed

BUT!! BUT!! Every time I shutdown my laptop, and restart it, it would tell me that /dev/HAX is missing, again! Every time. How can I solve this problem?

Specs: Macbook Pro Early 2015, El Cap, Android Studio 1.4

Thank you!

like image 225
TPWang Avatar asked Oct 25 '15 15:10

TPWang


People also ask

Why my AVD is not working?

Android Virtual Devices fail to launch on ChromeOS On ChromeOS, Android Virtual Devices (AVDs) might fail to launch because the libnss3 dependency is missing. To launch the AVDs successfully, run sudo apt install libnss3 to manually install the libnss3 library.

Why is the app not showing on the emulator Android Studio?

Check in your build. gradle file if the targetSDK and minimumSdk version is lower or equal to the sdk version of your Emulator. If your case is different then restart your Android Studio and run the emulator again. Save this answer.

How do I know if I have Android SDK installed?

In Android Studio, click File > Project Structure. Select SDK Location in the left pane. The path is shown under Android SDK location.

How do I turn off Android emulator?

Run and stop an emulator, and clear data To stop a running emulator, click Menu and select Stop. To clear the data for an emulator, select Wipe Data. Or click Menu and select Wipe Data.


1 Answers

I have the same problem on my Mac running El Capitan. For some reason, the /dev/HAX device is removed after reboot or after sleep.

I have found this command to work inserting the module back into the kernel:

sudo kextutil /Library/Extensions/intelhaxm.kext

Just run it from the terminal.

It does not solve the problem, but at least it doesn't require a complete reinstall of the haxm module.

like image 76
Pit0r Avatar answered Oct 24 '22 17:10

Pit0r