現象:Intel x86 Emulator Accelerator (HAXM... がNot compatible with Windowsと表示される
Rev.(リビジョン)は、実際にインストールされているバージョンによらず、6.1.1と表示される (別のバージョンの場合もあります)
※実際のバージョン(intelhaxm-android.exeに設定されている値)は6.0.5や6.0.6など。
Android SDK Managerからは、インストールもデリートもできない
※(Android SDK)\extras\intel\Hardware_Accelerated_Execution_Managerにあるのは、古いもの。
(intelhaxm-android.exe を右クリック>プロパティ>詳細で、バージョンを確認できます。)
最新版は、Program Filesの中にインストール先が変更されています。
対処法:Intelのダウンロードページから最新版を取得する
ダウンロードページ
Intel® HAXM
※インストールガイドも、目を通しておいた方がよいかと思います。
メモリの割り当てを変えたい場合も、再度インストーラを走らせます。
Adjusting Intel HAXM Memory Allocation
To change the amount of memory allocated to Intel HAXM, run the installer again.
サービスの停止/開始が必要
確認用
sc query intelhaxm
停止
sc stop intelhaxm
開始
sc start intelhaxm
環境変数をセット(必要??)
Tips and Tricks
Make sure the "ANDROID_SDK_ROOT" environment variable is set
バージョンの確認方法
Android Studio - Configure Hardware Acceleration for the Android Emulator
Determining whether HAXM or KVM is installed
に、コマンドが載っています。
./sdk/tools/emulator -accel-check
蛇足: コマンドラインからをエミュレータ起動しようとした時に、Emulator error: This AVD's configuration is missing a kernel fileが出る場合
Tips and Tricks にある
%ANDROID_SDK_ROOT%\tools\emulator –avd <avd_name> -verbose –show-kernel
を実行した時に、エラー(configuration is missing a kernel file)が出る場合は、
の所で、誤ってパスを入力していないか確認しましょう。
(具体的には、emulator -list-avds
で出てくる名前になっているかを確認。)
システムイメージがダウンロードされていない場合もあるようですが、今までAndroid StudioからAVDを起動できていた環境なら、通常はダウンロード済みかと思います。
エラーの例
emulator: ERROR: This AVD's configuration is missing a kernel file!!
emulator: ERROR: ANDROID_SDK_ROOT is undefined
※ANDROID_SDK_ROOTの行は、あまり参考にならなかったりします。(色々変えて試しても、表示は変わりません)
# 参考資料
[Stackoverflow - I can't install intel HAXM](https://stackoverflow.com/questions/28418450/i-cant-install-intel-haxm)
[Stackoverflow - The intel x86 emulator accelerator (HAXM installer) revision 6.0.5 is showing not compatible with windows](https://stackoverflow.com/questions/41092207/the-intel-x86-emulator-accelerator-haxm-installer-revision-6-0-5-is-showing-no)
[Stackoverflow - Emulator error: This AVD's configuration is missing a kernel file](https://stackoverflow.com/questions/9712605/emulator-error-this-avds-configuration-is-missing-a-kernel-file)
[Stackoverflow - Cannot run emulator in Android Studio](https://stackoverflow.com/questions/28864785/cannot-run-emulator-in-android-studio)