⚡
エミュレーター起動エラー「The emulator process for AVD *** has terminated.」の原因と対処法
エラー
The emulator process for AVD Pixel_9a has terminated.
対処方法
-
C:\Users\ユーザ名\AppData\Local\Google\AndroidStudio***\log\idea.logを確認
idea.log・・・ 2025-07-17 16:01:35,307 [ 119165] WARN - Emulator: Pixel 9a - C:***\android\system-images\android-36\google_apis\x86_64\ is not a valid directory. 2025-07-17 16:01:35,307 [ 119165] WARN - Emulator: Pixel 9a - emulator has searched the above paths but found no valid sdk root directory. 2025-07-17 16:01:35,307 [ 119165] INFO - Emulator: Pixel 9a - Process finished with exit code 1 2025-07-17 16:01:35,307 [ 119165] WARN - Emulator: Pixel 9a - Emulator terminated with exit code 1 ・・・「エミュレータが指定のディレクトリを探しましたが、有効なSDKルートディレクトリが見つからなかったため、起動に失敗した」という警告でした
-
Android SDK Manager でインストール先パスを確認
Tools > SDK Managerを開いて、Android SDK Locationを確認

私はここのパスが違っていました。 -
SDK Managerのパス、もしくはlocal.propertiesファイルのsdk.dirを修正
local.propertiessdk.dir={正しいパス}
Discussion