Androidのエミュレーターが起動しないときの対処法

tl;dr

  1. コマンドラインから起動する
  2. エラーメッセージをみてググる
  3. 対処する

Let’s try!

AVD のリストを取得する。

$ ./emulator -list-avds

起動する。

$ ./emulator -avd Pixel_API_23
Hax is enabled
Hax ram_size 0x60000000
HAX is working and emulator runs in fast virt mode.
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync HAX vcpu contextInternal error: Initial hax sync failed

今回の場合は、Vagrant が起動していたのが原因でしたので、Vagrant を止めました。

参考サイト