LoginSignup
4
4

More than 3 years have passed since last update.

macOS Big Sur 11.3でAndroid Emulatorが起動しない

Posted at

Big Sur 11.3にアップグレードしたら、Android Emulatorが起動しなくなった

かなり悩んだ結果、以下のTwitterの書き込みにたどり着きました。

以下のURLに誘導されたので、その通りにやってみました。

まず、entitlements.xmlを準備

/tmp/entitlements.xml を作成します。

/tmp/entitlements.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.security.hypervisor</key>
    <true/>
</dict>
</plist>

これを使ってcodesignを実行

Android SDKのパスは違う場合があるので、そこは適宜読み替えてください。

terminal
$ codesign -s - --entitlements /tmp/entitlements.xml --force /Users/{ユーザー名}/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64

これでEmulatorが起動するようになりました。

まとめ

OSのアップデートに追従するのは辛みがありますね、、、

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4