android studio emulator: process finished with exit code 1

0

My problem is that i cannot run the android studio emulator, I had searched to many articles, and i had found here that i had to set Software for Emulated Performance Graphics option, in the AVD settings, However i found that it's disabled by default.

I had reached this issue tracker too, but it's too long and misleading, and their variables may doesn't belong to my case.

So, my Event log text with the red color return the following error lines :

12:02 PM    Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect t

12:02 PM    Emulator: o adb daemon on port: 5037

12:02 PM    Emulator: dsound: Could not initialize DirectSoundCapture

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

12:02 PM    Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

12:02 PM    Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

12:02 PM    Emulator: audio: Failed to create voice `goldfish_audio_in'

12:02 PM    Emulator: C:\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: warning: opening audio input failed

12:02 PM    Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

12:02 PM    Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

12:02 PM    Emulator: audio: Failed to create voice `adc'

12:02 PM    Emulator: C:\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: WHPX: Failed to emulate MMIO access with EmulatorReturnStatus: 2 (InternalEmulationFailure )

12:02 PM    Emulator: C:\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: whpx_vcpu { emulator=000001A4B59

12:02 PM    Emulator: E6530, window_registered=false, interruptable=true, tpr=0, apic_base=fee00900, interruption_pending=false }

12:02 PM    Emulator: C:\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: WHV_MEMORY_ACCESS_CONTEXT { Ins

12:02 PM    Emulator: truction={ size=16, bytes=

12:02 PM    Emulator: 'A1 F0 00 E0 FE 80 CC 01 A3 F0 00 E0 FE C7 05 50 ' }, AccessInfo={ AccessType=0, GpaUnmapped=1, GvaValid=0, AsUINT32=4 }, Gpa=fee000f0, Gva=0 }

12:02 PM    Emulator: C:\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: WHPX: Failed to exec a virtual processor

12:02 PM    Emulator: Process finished with exit code -1073740791 (0xC0000409)

Excuse me, can any body help, your help is mainly appreciated.

edit #1 Please note, that i use Windows as my Operating system.

I had found that article which is similar to this one in this part

$ sudo nano /etc/bash.bashrc
$ export ANDROID_HOME=${HOME}/Android/Sdk
$ export PATH=${PATH}:${ANDROID_HOME}/emulator
at reference [one][3]  and this part 

30 EDIT

fixed "ANDROID_EMULATOR_USE_SYSTEM_LIBS" error, turns out I improbably assigned ANDROID_HOME, reassigned the value "export ANDROID_HOME=/[installation location]/SDK", then "export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools".
My bad :(, now time to start my first android application ever :D, thanks all.

Really, i still don't know whether the solution is based on the Android Home in the environment variables, but i would like some one help me. Thanks

android-studio
avd
avd-manager
asked on Stack Overflow Feb 5, 2020 by MOAtef • edited Feb 5, 2020 by MOAtef

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0