Android-Studio Emulator audio error

2019-07-26 00:45发布

问题:

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.