Android模拟器在Ubuntu中没有声音 [英] Android emulator no sound in ubuntu

查看:277
本文介绍了Android模拟器在Ubuntu中没有声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在ubuntu-19.10中运行android模拟器,并且尝试了以下没有结果的解决方案,

链接1

链接2

链接3

错误

1:10 PM Emulator: pulseaudio: pa_context_connect() failed
1:10 PM Emulator: pulseaudio: Reason: Connection refused
1:10 PM Emulator: pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver

关于我尝试过的解决方案的一些说明,

尝试 Link-1 时,我看不到"Qemu-系统"中的设置.还创建了许多不同版本的AVD,但似乎可以正常工作.

尝试链接2 pulseaudio -D命令错误输出.

我还尝试了链接3 多个博客文章中的建议解决方案.但是仍然在模拟器启动时发现相同的错误.我想指出的是,我对这个解决方案还不够聪明.

预先感谢您的帮助.

解决方案

在Ubuntu 20.04中,从Ubuntu软件安装了Android Studio时出现了同样的问题.尝试了所有方法(paprefs, this ),没有任何效果.卸载Android Studio Snap并从从Android Studio网站下载的tar包中重新安装,效果很好.

I am running android emulator in ubuntu-19.10 and I have attempted following solutions with no results,

Link-1

Link-2

Link-3

Error,

1:10 PM Emulator: pulseaudio: pa_context_connect() failed
1:10 PM Emulator: pulseaudio: Reason: Connection refused
1:10 PM Emulator: pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver

Some notes on solution I tried,

When trying Link-1 i don't see "Qemu-system" in settings. Also created many different versions of AVDs but does seem to work.

After trying Link-2 pulseaudio -D command errors out.

I have also tried Link-3 which looks like widely suggested solution in multiple blog posts. But still I find the same error on emulator startup. I would like to note that I am not smart enough understand this solution.

Thanks in advance for helping out.

解决方案

Same problem in Ubuntu 20.04, with Android Studio installed from Ubuntu Software. Tried everything (paprefs, this), nothing worked. Uninstall Android Studio Snap and reinstall from tar package downloaded from Android Studio website, works perfect.

这篇关于Android模拟器在Ubuntu中没有声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆