Android – No sound with Android Studio emulator

androidandroid-emulatorandroid-studio

I cannot get sound working in the emulator in Android Studio. It's not my code as it's a very simple example program to demonstrate the MediaPlayer that works fine on an actual device.

On the emulator in Android Studio there is absolutely no sound, not even system sounds. Is this an Android/Android Studio bug? Or could it be the configuration of my particular system? Windows 10 issue?

Anyone else having this problem? Any solution other than using a real device or Genymotion (which I've never used) ?? Thanks.

EDIT: The only way I can get the emulator in Android Studio to start with audio is to launch it from the terminal with both the "-no-snapshot" and "-no-snapshot-load" options. And this only works about 80% of the time. It has something to do with snapshots. There are a couple of old questions on this but no solutions.

Best Answer

Try to open your Oracle VM Virtualbox. Go to Settings -> Audio -> Host Audio Driver and change it to PulseAudio. Let me know if it helps.