Home>

I ’m a beginner app developer.
When you start the app on the emulator, the app will always drop and an error message like the title will be displayed.

Error message
Error message


Emulator: dsound: Could not initialize DirectSoundCapture

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

Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

Emulator: audio: Failed to create voice `goldfish_audio_in'2

Emulator: C: \ Users \ xxxx \ AppData \ Local \ Android \ Sdk \ emulator \ qemu \ windows-x86_64 \ qemu-system-i386.exe: warning: opening audio input failed

Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

Emulator: audio: Failed to create voice `adc'

Applicable source code
Source code

I went through the DirectSoundCapture and found no solution or information.

Supplemental information (FW/tool version etc.)

Starting with Nexus 5X API18.
Please include more detailed information here.

  • Answer # 1

    These error messages are due to the fact that the Android emulator program could not detect the voice input device. If you connect a microphone to your PC, you should be able to avoid these errors.

    Even though those messages appear, the emulator can start up itself. The same error message appears at my hand, but it is running normally. The reason for not starting seems to be another cause, but the current information does not show it.


    (Added 12/20 23:40)
    Comment here because I want to paste an image. Isn't there an icon like the one below in the taskbar?


    (Added 12/21 12:16)
    Use Logcat to check for errors in apps you develop. There is a button6: Logcatin the lower left corner of Android Studio. Click this to open the view. There are three pull-down lists. From the left, the list is "Terminal collecting log", "Target package", and "Error level to collect". If you run the app by operating Android Studio while the emulator is running, the "target package" should be that of your app. Set "Error level" to error and try to run it until the app falls. I think that a lot of logs in red will come out, but look for the log that contains the source file name you made from among them (the figure below shows the log that contains the file MainActivity.kt). Please provide these logs in your question. In addition, you can see the specific location where the error occurs from this log (in the figure below, the 12th line of MainActivity.kt), so it is good to show the source file in the vicinity.

    You can also see what kind of error this is causing. In this figure, an exception called IllegalStateException has occurred. It may be possible to solve this problem by searching the internet.