I have an MSI P65 with Ubuntu 19.10 distro. My emulator in Android Studio has no sound. The event log of Android Studio shows these warnings/errors:
18:41 Emulator: Fontconfig error:
"/home/fabrizio/.config/fontconfig/fonts.conf", line 10: junk after
document element
18:41 Emulator: pulseaudio: pa_context_connect() failed
18:41 Emulator: pulseaudio: Reason: Connection refused
18:41 Emulator: pulseaudio: Failed to initialize PA contextaudio:
Could not init `pa' audio driver
If i use the command pulseaudio
in terminal I get these errors:
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.
Already tried to delete the files in .config/pulse
but it didn't work.
What else can I try?
There is a "/" missing, otherwise its a relative link. There you go ...
Use this command, just as it is without changing anything.
For the canary:
The symbolic link solutions mentioned in the other answers only works until reboot for me.
However, the solution provided in this answer on Stack Overflow by Mo'ath Hasan Alshorman works for me in Ubuntu 20.04 LTS with snap Android Studio even after reboot:
Same problem in Ubuntu 20.04, tried everything here and other solutions, no luck. What worked for me is to uninstall Android Studio from Ubuntu Software, and reinstall downloaded from Android Studio website.
https://developer.android.com/studio
Launching the emulator manually I resolved ! (Ubuntu 20.04)
emulator program can be found inside android-sdk/tools/
To get le name of your device:
To start the emulator with Sound !