Shelby Swayze
Newbie
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:
I would have removed this thread since I moved it to App Development but I don't see a link to remove it from this area.
Here's the entire project which I am building from an android classroom from udemy.com by my instructor .
Any ideas? Thanks
I would have removed this thread since I moved it to App Development but I don't see a link to remove it from this area.
Code:
9/17/2019
6:03 AM * daemon not running; starting now at tcp:5037
6:03 AM * daemon started successfully
6:03 AM Gradle sync started with single-variant sync
6:03 AM Project setup started
6:03 AM Gradle sync finished in 3 s 989 ms (from cached state)
6:04 AM Executing tasks: [:app:generateDebugSources] in project C:\Users\Shelby\AndroidStudioProjects\JavaArrays
6:04 AM NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN
6:04 AM Gradle build finished in 30 s 252 ms
6:08 AM Executing tasks: [:app:assembleDebug] in project C:\Users\Shelby\AndroidStudioProjects\JavaArrays
6:08 AM Emulator: dsound: Could not initialize DirectSoundCapture
6:08 AM Emulator: dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID
6:08 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
6:08 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
6:08 AM Emulator: audio: Failed to create voice `goldfish_audio_in'
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
6:08 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
6:08 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
6:08 AM Emulator: audio: Failed to create voice `adc'
6:08 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
6:08 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
6:08 AM Emulator: audio: Failed to create voice `adc'
6:09 AM Gradle build finished in 17 s 347 ms
6:09 AM Install successfully finished in 566 ms.: App restart successful without requiring a re-install.
6:09 AM Executing tasks: [:app:assembleDebug] in project C:\Users\Shelby\AndroidStudioProjects\JavaArrays
6:09 AM Gradle build finished in 3 s 339 ms
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:
package com.swayzeconstruction.javaarrays;
public class Main {
public static void main(String[] args) {
String[] names = new String[5];
names[0] = "Shelby";
names[1] = "Jaam";
names[2] = "Bisous";
names[3] = "Felix";
names[4] = "Hadi";
System.out.println(names[3]);
int[] numbers = new int[5]; //apparently gives all values of array
//or the following
}
{
String[] names2 = new String[5];
System.out.println(names2[2]); //gives second value of array
// or the following
}
{
String[] names3 = new String[5];
{
System.out.println(names3[2]);
int[] numbers = {1, 2, 3, 4, 5}; //note: using curly braces
System.out.println(numbers[1]); // to get second element
}
}
}
Any ideas? Thanks
Last edited: