Android emulator shuts down and cannot exit

I installed the Android plugin on Eclipse 3.6 in the usual way (otherwise, I step through the Google setup page step by step).

When I run some sample application, everything works fine, but if I try to exit the emulator (by clicking the cross on the emulator output), the emulator seems to hang it completely.

What really bothers me is that I cannot even kill the process, start another emulator, or even restart the computer, since the process seems impossible to stop or kill.

Does anyone have a similar problem and what solution to give?

+7
android android-emulator
source share
4 answers

I saw this problem with the emulator when running Linux on some machines. This problem was related to audio, and the -noaudio option helped her when the emulator started.

You can add emulator options in the Android-Launch settings in eclipse. Just add -noaudio to the Default Emulator Settings field.

+6
source share

Influencing the output due to the sound processing flow is a known error:

http://code.google.com/p/android/issues/detail?id=17294

To work around this problem, turn off the audio input in the AED manager with "sound recording support" set to "no", which sets "hw.audioInput = no" in the QEMU ini file.

+5
source share

Firstly, I was able to confirm my system (Win7 x64, Eclipse Helios SR2), the situation with the eclipse freezing was caused by a noted sound defect. (I did this by running the emulator from the command line and using the -noaudio option. Eclipse will use the existing emulator and it no longer hangs.)

However, I cannot force Eclipse to use the "-noaudio" value that I entered in the "Default emulator options" field. I also tried "noaudio", but that didn't work. When checking the command line of the process, the option "-noaudio" is absent; just the rest of the standard options.

+1
source share

I still had a problem with WXP SP3 and ADT-Bundle-Windows-X86 (which is a pre-connected Eclipse with ADT; SDK r21).

I tried some of the tips above, but no one worked when starting the emulator from eclipse. The emulator freezes after exiting and prevents Windows from shutting down.

  • setting hw.adioInput=no : after several configuration files, the file <user dir>\.android\avd\<emulator name>.avd\hardware-qemu.ini turned out to be correct. To my disappointment, this file is overwritten every time an eclipse starts the emulator.
  • the -noaudio setting in Preferences\Android\Launch\Default emulator options did not work as @RodBarnes mentioned

What finally worked (for me) is one of these two options:

  • Or create a batch file to start the emulator using the emulator @<emulator name> -noaudio command line, assuming emulator.exe is in your path. Else prefix it with the full path to emulator.exe . Eclipse recognizes the running emulator and uses it.
  • Or set a command line parameter for each configuration of one run. You will find it under Run\Run configurations...\<Your configuration>\Target\Additional Emulator Commandline Options . Type -noaudio here. You may need to scroll the Target panel a bit to see this option. Some other comments I found mentioned that there is no scrolling in some versions of Eclipse, so try increasing the window size.

I prefer the first option for myself, because you only need one batch file for each emulator, and you do not need to change each run configuration.

0
source share

All Articles