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

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

问题描述

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

Link-1

Link-2

Link-3

错误,

1:10 PM 模拟器:pulseaudio:pa_context_connect() 失败下午 1:10 模拟器:pulseaudio:原因:连接被拒绝下午 1:10 模拟器:pulseaudio:无法初始化 PA 上下文音频:无法初始化pa"音频驱动程序

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

在尝试 Link-1 时,我没有看到Qemu-系统"在设置中.还创建了许多不同版本的 AVD,但似乎确实有效.

尝试Link-2pulseaudio -D 命令出错.

我也试过 Link-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天全站免登陆