Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error launching the android project on emulator(API 28 on windows)

While trying to run the created Android project, I am getting below error and the project does not launch on the emulator even though the emulator gets launched successfully.

Error:

6:04 PM Emulator: dsound: Could not initialize DirectSoundCapture

6:04 PM Emulator: dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID

6:04 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

6:04 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

6:04 PM Emulator: audio: Failed to create voice `goldfish_audio_in'

6:04 PM Emulator: %PATH%\qemu\windows-x86_64\qemu-system-x86_64.exe: warning: opening audio input failed

6:04 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

6:04 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

6:04 PM Emulator: audio: Failed to create voice `adc'

6:04 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

6:04 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

6:04 PM Emulator: audio: Failed to create voice `adc'
like image 280
user9261795 Avatar asked Dec 06 '18 12:12

user9261795


People also ask

How do I fix an error opening emulator?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

Why Android emulator is not opening?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

Why do apps sometimes look different in the designer than they do in the emulator?

The reason why the designs look different is that the emulator's screen configuration is different to that which is used to render the design preview.


1 Answers

It's your new Windows 10 Update. I couldn't figure it out for the life of me! I looked at 4 pages of results on Google and only saw the same old crap. So, here we go.

To Fix: Click Start, go to ⚙ Settings> Privacy Settings> Microphone. Turn On "Allow apps to access your microphone"

Also, MrPoopyB0tthole advised me of this fix as well.

like image 135
Mohsin Ahmed Avatar answered Oct 22 '22 15:10

Mohsin Ahmed