LoginSignup
2
0

More than 1 year has passed since last update.

コマンドラインからエミュレータをkillする

Posted at

概要

AndroidStudioで下記のエラーでエミュレータが起動できなくなった際の対応法を備忘録として残します。

エラーメッセージ
ERROR | Running multiple emulators with the same AVD ERROR | is an experimental feature. ERROR | Please use -read-only flag to enable this feature.

GUI上で起動しているエミュレータがなくても起動できなくなるため、コマンドラインからの停止を試しました。

環境

  • macOS Monterey 12.4
  • Android Studio Bumblebee

対応

adbコマンドを使用して起動しているエミュレータをkillします。
*adbコマンドの詳細については割愛します。

起動中のデバイスを確認
adb devices
実行結果
List of devices attached
emulator-5554	device

GUI上で閉じていても起動していることがわかります。

起動しているエミュレータをkill
adb -s emulator-5554 emu kill
実行結果
OK: killing emulator, bye bye
OK

killが成功したらAndroidStudioからエミュレータを起動する

参考

2
0
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
2
0