Android-Studio Emulator audio error

这一生的挚爱 提交于 2019-12-11 13:01:51

问题


Hello, I am trying to setup Android Studio 3.1.3 in a guest VM with windows 10 x64 pro. In the VirtualBox I have intel HD sound controller enabled. I have installed Android 6.0 in AVD for ARM EABI architecture on a Pixel.

However, when I try to launch the emulator I get

Emulator: audio: Failed to create voice `goldfish_audio_in'

Emulator: qemu-system-armel.exe: warning: opening audio input failed

and the emulator is just a black screen that does not respond to anything.

I have everything enabled in Virtual Box regarding hardware acceleration.

I checked these posts:

Is it possible to run Android Device Emulator (via Android Studio 2) on VMWare?

“emulator: warning: opening audio input failed” displayed in the console while AVD is launching

Android Emulator: Audio Input Failed

but I still get the same error and black screen on the emulator...

I have also tried to disable sound in config.ini or disable the microphone in windows 10 VM but didnt change anything.

Am I missing something here?

Is it impossible to run android emulator for ARM architecture on a VM?


回答1:


Just to ansewer the question, for me the solution was to just use API version older than 23 (android 6.0). API 22 (android 5.1) seems to work well, althought you may notice some latency.

NOTE: I ll leave the question open just in case there is a better way to make it work with latest android versions.




回答2:


Plugin something in the microphone pin and voila.. the error goes away... for some reason, it needs the microphone .. AMD Ryzen 1600, the hypervisor is on, windows 10 pro-1903. Running Pie on emulator fine



来源:https://stackoverflow.com/questions/51330309/android-studio-emulator-audio-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!