This is what happens about half a dozen times a day:
Android emulator (e.g. CPU / API: Intel Atom (x86), Target: API level 15) has been working fine for some time, and then Eclipse shows the following error when installing the application
[2013-07-01 15:15:47 - Myapp] Failed to install myapp.apk on device 'emulator-5554': Connection refused: connect [2013-07-01 15:15:47 - Myapp] java.net.ConnectException: Connection refused: connect [2013-07-01 15:15:47 - Myapp] Launch canceled!
Sometimes closing and restarting the emulator will fix this. However, most of the time, starting with the emulator, the following is generated:
[2013-07-01 15:16:43 - Emulator] HAX is working and emulator runs in fast virt mode [2013-07-01 15:16:43 - Emulator] emulator: warning: opening audio input failed
When this happens, the emulator will appear, but it will not work (i.e. applications cannot be installed). Reset adb (DDMS> Device> Reset adb) will not work. I need to go to windows task manager to kill adb.exe. Adb.exe will restart automatically in less than 20 seconds and everything will be fine.
I'm a little tired of doing this many times every day, so I'm looking for a way to avoid adb corruption.
Computer OS: Windows 8 Pro
Processor: Intel i5
Eclipse: Build id: 20121004-1855
Posted on 2013-07-26: As an answer, I chose IronBlossom's answer, although he did not specifically answer this question, but solved the problem of restarting ADB. In fact, he solved many problems, including very significant ones - they failed to simultaneously launch Intel Android emulators in fast mode and Windows Emulators. There is a trick to run Genymotion emulators and Windows Phone emulators side by side.