boc
boc

Reputation: 378

Android Emulator is not playing sound

My Pixel 2 Android Emulator won't play sound, not from my app, not even from YouTube. I've restarted my computer, cold-booted the app, yet nothing works. I can use a physical device, but I'd like to have my emulator on the side while coding. Any Ideas?

Most of the other similar questions seem to be from 5-10 years ago, probably out of date? I've been working on this all day, so any advice is hugely appreciated.

Upvotes: 16

Views: 18568

Answers (7)

TienVD
TienVD

Reputation: 93

Unfortunately, none of the above solutions worked for me.

I had a solution:

I used scrcpy to connect my AVD to PC:

This is download link: https://scrcpy.net/download/

It will help to connect AVD sound to PC. Note that you Make sure all of settings above are running good before use scrcpy.

Like me if it run good for you.

Upvotes: 0

Kasia K.
Kasia K.

Reputation: 161

Wiping device's data (Device Manager -> three dots to the right -> wipe data) and re-running it worked for me.

Upvotes: 1

John Dunne
John Dunne

Reputation: 397

If you're developing on linux, check the Sound settings. I found that qemu was set to mute in the Applications tab of Sound settings.

enter image description here

Upvotes: 1

seth
seth

Reputation: 313

I'm new to Android development and ran into the same problem. The initial volume of the emulator is incredibly quiet so when I increased it my issue was solved. Just press the top volume button underneath the power icon.

volume icons

Then use the slider to adjust the volume.

volume slider

(Putting this here in-case anybody else has a similar problem.)

Upvotes: 10

mo1117
mo1117

Reputation: 1

For me, none of the already mentioned solutions worked.

What worked for me, though, was installing a different system image.

Putting this here in case someone else stumbles across the same problem.

Upvotes: 0

John Moore
John Moore

Reputation: 8274

Try restarting the virtual device from scratch without using a snapshot. Here are two ways to do that:

  1. Change the power button on the virtual device so that it actually does what it is supposed to do. Go to Settings->System->Gestures->Press & hold power button. Select the Power menu option. Then press and hold the power button on the virtual device and select Restart.

  2. Start your virtual device with the Cold Boot Now option. enter image description here

Upvotes: 18

boc
boc

Reputation: 378

Fortunately, I found the problem, although it wasn't directly related with the Android Emulator. The problem was with my missing/outdated usb sound drivers. Here's basically how I fixed it.

  1. Press on the Window Key
  2. Type "Device Manager" and hit Enter
  3. Open "Sound, video and game controllers"
  4. Note the name of any of the driver with a yellow warning sign on it.
  5. Head to Google, search for that driver name, and download it
  6. Open the Android Emulator, Test, and Enjoy success :)

Upvotes: 1

Related Questions