본문 바로가기

프로그래밍/Android

Android : The emulator process for AVD Pixel_XL has terminated.

반응형

안드로이드 테스트를 위한 가상머신을 pixel xl 로 만들어서, 실행을 해보니 다음과 같은 에러가 발생했다.

   AVD Manager
   (!) The emulator process for AVD Pixel_XL_API_30 has terminated.

문제해결을 위해서 메시지를 구글링해 보았더니 스택오버플로우에 답변이 검색됐는데( https://stackoverflow.com/questions/67346232/android-emulator-issues-in-new-versions-the-emulator-process-has-terminated ), 너무나도 다양한 원인이 있는 것 같았다. 여러 답변 중에서 가장 도움이 된 것은, idea.log 의 로그를 확인해 보라는 것이었다.

C:\Users\me\AppData\Local\Google\AndroidStudio2020.3\log\idea.log 

파일을 열어서 제일 마지막 부분을 보니, 다음과 같은 에뮬레이터 에러메시지가 있었다.

INFO - manager.EmulatorProcessHandler - Emulator:  
INFO - manager.EmulatorProcessHandler - Emulator: ERROR   | crashhandler_die: fatal: OpenGLES emulation failed to initialize. Please consider
INFO - manager.EmulatorProcessHandler - Emulator: the following troubleshooting steps:
INFO - manager.EmulatorProcessHandler - Emulator:  
INFO - manager.EmulatorProcessHandler - Emulator: 1. Make sure your GPU drivers are up to date.
INFO - manager.EmulatorProcessHandler - Emulator:  
INFO - manager.EmulatorProcessHandler - Emulator: 2. Erase and re-download the emulator ($ANDROID_SDK_ROOT/emulator).
INFO - manager.EmulatorProcessHandler - Emulator:  
INFO - manager.EmulatorProcessHandler - Emulator: 3. Try software rendering: Go to Extended Controls > Settings > Advanced tab and change "OpenGL ES renderer (requires restart)" to "Swiftshader".
INFO - manager.EmulatorProcessHandler - Emulator:  
INFO - manager.EmulatorProcessHandler - Emulator: Or, run emulator from command line with "-gpu swiftshader_indirect". 4. Please file an issue to https://issuetracker.google.com/issues?q=componentid:192727 and provide your complete CPU/GPU info plus OS and display setup.
INFO - manager.EmulatorProcessHandler - Emulator:  
INFO - manager.EmulatorProcessHandler - Emulator: INFO    | Android emulator version 31.1.4.0 (build_id 7920983) (CL:N/A)
INFO - manager.EmulatorProcessHandler - Emulator: Process finished with exit code -1073741819 (0xC0000005)
WARN - manager.EmulatorProcessHandler - Emulator terminated with exit code -1073741819
 
 
메시지를 좀 들여다 보니, GPU drivers 최신버전인지 확인해 보라는 둥의 해결방법을 제시하고 있었다.
 
그래서, Pixel XL 버츄얼머신에서 오른쪽 클릭하고 Edit 을 선택하여, 버츄얼머신의 상세사항 중에서 Graphics 부분을 수정하여 문제를 해결했다. (내 경우는 Software - GLES 2.0 으로 설정해서 해결됨. 다른 경우에는 Hardware 로 세팅하여 해결될 수도 있으니 이것도 시도해 보시라.)

 

728x90