1

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?

BugShotGG
  • 5,008
  • 8
  • 47
  • 63
  • Anyone out there facing the same problem? – BugShotGG Jul 27 '18 at 19:20
  • Are you running in VMWare? Wasn't sure. I've only tried on WMWare not other things like Oracle's VirtualBox. Not sure if it will work. Also, at one point I needed this ability and couldn't get it working and I used https://www.genymotion.com/ Android In Cloud and it worked well. You have to manage it though and it'll cost you $2 a day depending on how long you session is. Last thing, I've seen the error you're getting and I don't think I've ever solved it. I just ended up creating another VM image and finally got it working by luck. – raddevus Jul 30 '18 at 18:13
  • @raddevus Yes it is running in a windows 10 guest VM (VirtualBox). I am using Intel HD audio controller in VirtualBox settings since AC97 doesnt even work in the guest OS. – BugShotGG Jul 30 '18 at 18:36

2 Answers2

0

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.

BugShotGG
  • 5,008
  • 8
  • 47
  • 63
0

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

Suraj
  • 96
  • 1
  • 2
  • 13