Reputation: 378
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
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
Reputation: 161
Wiping device's data (Device Manager -> three dots to the right -> wipe data) and re-running it worked for me.
Upvotes: 1
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.
Upvotes: 1
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.
Then use the slider to adjust the volume.
(Putting this here in-case anybody else has a similar problem.)
Upvotes: 10
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
Reputation: 8274
Try restarting the virtual device from scratch without using a snapshot. Here are two ways to do that:
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
.
Upvotes: 18
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.
Upvotes: 1