事象
エミュレータを作成、実行しようとした際、「The emulator peocess for AVD Pixel_2_API_28 has terminated .」と表示された。
調べたら~ has killed
の対処法は出てきたが~ has terminated
の対処法は出てこなかったのでメモ。
結論
ディスク容量不足
確認手順
-
C:\Users\ユーザ名\AppData\Local\Google\AndroidStudio2020.3\log\idea.log
を適当なエディタで開く - 「terminated」等で検索をかけると以下のようなログが出てくる
2021-09-30 19:38:24,878 [ 503186] INFO - manager.EmulatorProcessHandler - Emulator: C:\Users\me\AppData\Local\Android\Sdk\emulator\emulator.exe -netdelay none -netspeed full -avd Pixel_2_API_28
2021-09-30 19:38:26,380 [ 504688] INFO - manager.EmulatorProcessHandler - Emulator: emulator: ERROR: Not enough space to create userdata partition. Available: 6655.781250 MB at C:\Users\me\.android\avd\Pixel_2_API_28_1.avd, need 7372.800000 MB.
2021-09-30 19:38:26,380 [ 504688] INFO - manager.EmulatorProcessHandler - Emulator:
2021-09-30 19:38:26,386 [ 504694] INFO - manager.EmulatorProcessHandler - Emulator: emulator: Android emulator version 30.8.4.0 (build_id 7600983) (CL:N/A)
2021-09-30 19:38:26,386 [ 504694] INFO - manager.EmulatorProcessHandler - Emulator: Process finished with exit code 1
2021-09-30 19:38:26,386 [ 504694] WARN - manager.EmulatorProcessHandler - Emulator terminated with exit code 1
→ WARN
行の少し上にERROR内容が記載されている
2021-09-30 19:38:26,380 [ 504688] INFO - manager.EmulatorProcessHandler - Emulator: emulator: ERROR: Not enough space to create userdata partition. Available: 6655.781250 MB at C:\Users\me\.android\avd\Pixel_2_API_28_1.avd, need 7372.800000 MB.