素材の味

丁寧に暮らしています

HAXM6.1.1をインストールしてもエミュレータが起動しなかった

qiita.com

Issue 197915 - android - [Emulator] HAXM ioctl failed on Mac when trying to restore vcpu state - Android Open Source Project - Issue Tracker - Google Project Hosting

DockerAndroidエミュレータが同時に起動できない問題がHAXM 6.1.1で解決したというのを見たので試してみようとした。

既にSDK Managerからインストールできるようになってたので、そこからインストールを行ってエミュレータの起動をしてみたんだけど、起動しようとはするんだけど結局何も起こらないでエラーメッセージも出なかった。

CLIからやればなんかメッセージ出るかなって思って試してみたら、

emulator: ERROR: Unfortunately, there's an incompatibility between HAXM hypervisor and VirtualBox 4.3.30+ which doesn't allow multiple hypervisors to co-exist.  It is being actively worked on; you can find out more about the issue at http://b.android.com/197915 (Android) and https://www.virtualbox.org/ticket/14294 (VirtualBox)
Internal error: initial hax sync failed

このエラーが出ていた。
直ったんじゃないの?ってなっていろいろ調べたら、
$ANDROID_HOME/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.shを叩けばいいって見たので、やってみたら無事動いた。

実際やってたのは昨日だったからいろいろ調べたけど今Issue Tracker見たらちゃんとこのことについても書かれてて安心。