AVD正在启动时,Android – “模拟器:警告:打开音频输入失败”显示在控制台中

前端之家收集整理的这篇文章主要介绍了AVD正在启动时,Android – “模拟器:警告:打开音频输入失败”显示在控制台中前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
"emulator: warning: opening audio input Failed"

每次启动AVD时,上述消息显示在控制台中,然后没有从仿真器发出声音.

我已经尝试删除AVD并重新创建了一个新的,但它没有帮助的问题.

我也在Google上搜索了很多时间,但我没有发现任何有用的东西.

真的有趣的是,人们倾向于建议忽略问题,因为AVD仍然没有声音工作正常.

但是我正在写一个与声音相关的Android应用程序,我真的需要一个可行的解决方案,使AVD再次“说话”.

非常感谢你.

@H_403_17@解决方法
打开AVD管理器.单击已创建的任何现有虚拟设备上的编辑或创建新虚拟设备.在创建虚拟设备窗口中,硬件选项卡上有一个新按钮.当单击该按钮时,您将获得一些属性.选择必要的属性(如音频播放支持).我认为这会做的伎俩.

编辑:这在早期版本的AVD Manager中是可能的. Android将AVD更新为新的(我们现在看到的).在新的AVD创建窗口中没有启用/禁用音频/视频的选项,AVD documentation中没有任何单词.

但是,他们指定您可以使用模拟器播放音频和视频.

AVDs let you define certain hardware aspects of your emulated phone
and allow you to create many configurations to test many Android
platforms and hardware permutations. Once your application is running
on the emulator,it can use the services of the Android platform to
invoke other applications,access the network,play audio and video,store and retrieve data,notify the user,and render graphical transitions and themes.

原文链接:https://www.f2er.com/android/311875.html

猜你在找的Android相关文章