Tags
android, developer toolkit, eclipse, emulator, error, hangs, mobile, software, technology, tutorial, ubuntu
I am not sure how many hours has been wasted on this error till now, but I have spent quite a few sleepless nights trying to get my emulator work on Android Developer Toolkit’s (ADT’s). Every time I ran my emulator, it hanged –> eclipse hanged –> eventually had no other option but to restart my system.
After revisiting my project for any errors and stupidities on my behalf, I found the solution : It is a bug in android. The audio handling thread in emulator on ubuntu systems , creates a deadlock . It is documented in the android issues list here .
The solution : If you are using an Eclipse IDE , go to Windows –> Preferences –> Android –> Launch and add “-noaudio” option to the default emulator options. Then apply and click OK. These changes do not get updated immediately , but on restarting eclipse , it gets updated.
If you are not using Eclipse, setting “-noaudio” in the command line prompt also works equally well . Hope this helps other harried developers 😉