• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Emulator Malfunction

For a month now I've not been able to get a proper function from my emulator. Here's a group of error messages I get today in the Event log:


Code (Text):
  1. 9/17/2019
  2. 6:03 AM * daemon not running; starting now at tcp:5037

  3. 6:03 AM * daemon started successfully

  4. 6:03 AM Gradle sync started with single-variant sync

  5. 6:03 AM Project setup started

  6. 6:03 AM Gradle sync finished in 3 s 989 ms (from cached state)

  7. 6:04 AM Executing tasks: [:app:generateDebugSources] in project C:\Users\Shelby\AndroidStudioProjects\JavaArrays

  8. 6:04 AM NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN

  9. 6:04 AM Gradle build finished in 30 s 252 ms

  10. 6:08 AM Executing tasks: [:app:assembleDebug] in project C:\Users\Shelby\AndroidStudioProjects\JavaArrays

  11. 6:08 AM Emulator: dsound: Could not initialize DirectSoundCapture

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

  13. 6:08 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

  14. 6:08 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

  15. 6:08 AM Emulator: audio: Failed to create voice `goldfish_audio_in'

  16. 6:08 AM Emulator: C:\Users\Shelby\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: warning: opening audio input failed

  17. 6:08 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

  18. 6:08 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

  19. 6:08 AM Emulator: audio: Failed to create voice `adc'

  20. 6:08 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

  21. 6:08 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

  22. 6:08 AM Emulator: audio: Failed to create voice `adc'

  23. 6:09 AM Gradle build finished in 17 s 347 ms

  24. 6:09 AM Install successfully finished in 566 ms.: App restart successful without requiring a re-install.

  25. 6:09 AM Executing tasks: [:app:assembleDebug] in project C:\Users\Shelby\AndroidStudioProjects\JavaArrays

  26. 6:09 AM Gradle build finished in 3 s 339 ms

  27. 6:09 AM Install successfully finished in 667 ms.: App restart successful without requiring a re-install.
Here's the entire project which I am building from an android classroom from udemy.com by my instructor .

Code (Text):
  1. package com.swayzeconstruction.javaarrays;

  2. public class Main {
  3. public static void main(String[] args) {
  4. String[] names = new String[5];
  5. names[0] = "Shelby";
  6. names[1] = "Jaam";
  7. names[2] = "Bisous";
  8. names[3] = "Felix";
  9. names[4] = "Hadi";

  10. System.out.println(names[3]);
  11. int[] numbers = new int[5]; //apparently gives all values of array
  12. //or the following
  13. }

  14. {
  15. String[] names2 = new String[5];
  16. System.out.println(names2[2]); //gives second value of array
  17. // or the following
  18. }

  19. {
  20. String[] names3 = new String[5];
  21. {
  22. System.out.println(names3[2]);
  23. int[] numbers = {1, 2, 3, 4, 5}; //note: using curly braces
  24. System.out.println(numbers[1]); // to get second element
  25. }

  26. }
  27. }
Any ideas? Thanks
 
Last edited:
Back
Top Bottom