I am trying to launch an android emulator through Appium using AVD.
The emulator starts but gets stuck on the Google logo screen. Logs several openGL errors.
I found a similar issue here in the appium-desktop repo: https://github.com/appium/appium-desktop/issues/1043
However it was closed due to it not being a appium-desktop problem.
Running the avd manually through the command line works fine:
PS C:\Users\myrocast> C:\Users\myrocast\AppData\Local\Android\Sdk\emulator\emulator.exe -avd emuA
Failed to open /qemu.conf, err: 2
HAX is working and emulator runs in fast virt mode.
dsound: Could not initialize DirectSound
dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID
audio: Could not init `dsound' audio driver
emulator: INFO: boot completed
emulator: INFO: boot time 23712 ms
emulator: Increasing screen off timeout, logcat buffer size to 2M.
emulator: Revoking microphone permissions for Google App.
emulator: Saving state on exit with session uptime 54521 ms
PS C:\Users\myrocast>
Afterwards my ui tests are also performed successfully.
https://gist.github.com/wulfihm/13cd59ed9cd2dbca57829eae1b125201
Simply using the "avd" capability set to the emulator I want to start.
https://gist.github.com/wulfihm/217aa4232241e3bda11cccefdaf1ecba
Appium has nothing to do with how Emulator starts. It simply executes the predefined command and then the startup depends on the actual environment settings. There is also a possibility to provide custom emulator args in capabilities.
Closed as not an issue