Android Stduio AVD가 stating up 상태에서 켜지지 않을 때

DoDoBest

·

2024. 3. 19. 15:59

상황

해결 방법이 바로 궁금하다면 왼쪽에 해결 방법 카테고리를 눌러주세요.

 

 

위와 같은 상태에서 AVD가 실행되지 않았다. 이전에는 재부팅을 하면 해결됐으나, 이번에는 해결 되지 않았다.

에뮬레이터를 지우고, cold booting 하고, AVD 관련 sdk tools를 업데이트 해도 해결되지 않았다.

 

GPT에게 물어보니 커멘드 창에서 실행해보라는 조언을 받았다.

 

6. Run Emulator from Command Line

Sometimes, running the emulator from the command line can provide additional error messages.

  • Open the command prompt or terminal.
  • Navigate to the emulator directory in the SDK, usually located at C:\Users\<YourUserName>\AppData\Local\Android\Sdk\emulator.
  • Run the emulator with the command emulator -avd <Your_AVD_Name>, replacing <Your_AVD_Name> with the actual name of your AVD.

Look for error messages in the command line output.

 

실행 결과 아래의 에러 메시지를 찾았다.

 

ERROR | It seems too many emulator instances are running on this machine. Aborting.

WARNING | QEMU main loop exits abnormally with code 1

INFO | Wait for emulator (pid 9028) 10 seconds to shutdown gracefully before kill;you can set environment variable ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL(in seconds) to change the default value (20 seconds)

 

 

StackOverFlow에 검색하니 다음과 같은 답변이 있었다.

 

I also had an error problem  ERROR | It seems too many emulator instances are running on this machine. Aborting. in the emulator windows command.

I had a lot of virtual networks, all of which were active, because of the VirtualBox and vmware installation.

Solution: Disabling all those networks solved my problem.

 

 

https://stackoverflow.com/a/70885678/11722881

 

it seems too many emulator instances are running on this machine. Aborting

When I run it from the SDK manager, the loading process works, but once it is done, a flash of the emulator appears then quickly disappears. Sometimes after it loads, nothing happens. At the wors...

stackoverflow.com

 

해결 방법

네트워크 연결에 들어가보니, VMWARE 관련 네트워크가 많이 있었다.

 

이것들을 다음과 같이 비활성화 해주니, 정상적으로 실행이 됐다.

 

 

원인은?

 

식탁보로 의심된다. VMWare가 있기는 하지만, 실행하지 않은지 오래 됐다. 식탁보는 최근에 여러 번 실행했었는데, 그 과정에서 네트워크 연결의 허용된 가상 갯수를 넘어서게 된 것 같다.