Emulator process terminated, how do I get Android Studio emulators to run? - android-studio

How do I get Android Studio virtual devices to run (stop terminating)?
Android Studio Chipmunk (2021.2.1)
This is the first time using Android Studio for me and I'm trying to get the Android emulator to work, to start learning Java. Everytime I try to run an emulator I get the following message:
The emulator process for AVD {device-name} has terminated.
I feel like I've tried everything I could find on the web. Here's what I have tried so far:
Checking my disk space as suggested here and even removing some unnecessary applications, despite having more than enough disk space (well over 80 GB).
Removing every virtual device and re-installing them again one by one using the built in Device Manager.
Removing the Android Emulator entirely and re-installing it from within the SDK Tools tab, found under the Tools > SDK Manager application menu.
Creating an advancedFeatures.ini file under C:\Users\ {name}\ .android\ as suggested here and in other posts with different lines in the file.
Restarting my PC and Android Studio throughout the entire process, after every step mentioned here.
Removing Android Studio completely from my system, then downloading it (from the official website) and installing it again.
Looking at the idea.log file. There's a bunch of errors regarding the emulator, which I cannot make sense of.
Does anybody have an idea what to do?
Here's what the idea.log file says about the emulator:
2022-05-16 10:23:53,804 [ 308433] WARN - alytics.SystemInfoStatsMonitor - CpuInfoFlags.fromExitCode(): unknown flag values '0x80'
2022-05-16 10:24:46,048 [ 360677] INFO - Emulator: Pixel 5 API Tiramisu - C:\Users\{username}\AppData\Local\Android\Sdk\emulator\emulator.exe -netdelay none -netspeed full -avd Pixel_5_API_Tiramisu -qt-hide-window -grpc-use-token -idle-grpc-timeout 300
2022-05-16 10:24:47,098 [ 361727] INFO - Emulator: Pixel 5 API Tiramisu - C:\Users\{username}\AppData\Local\Android\Sdk\emulator\emulator.exe -netdelay none -netspeed full -avd Pixel_5_API_Tiramisu -qt-hide-window -grpc-use-token -idle-grpc-timeout 300
2022-05-16 10:24:49,548 [ 364177] WARN - Emulator: Pixel 5 API Tiramisu - unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
2022-05-16 10:24:49,564 [ 364193] INFO - Emulator: Pixel 5 API Tiramisu - Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.
2022-05-16 10:24:49,564 [ 364193] WARN - Emulator: Pixel 5 API Tiramisu - Not all modern X86 virtualization features supported, which introduces problems with slowdown when running Android on multicore vCPUs. Setting AVD to run with 1 vCPU core only.
2022-05-16 10:24:51,046 [ 365675] WARN - Emulator: Pixel 5 API Tiramisu - cannot add library vulkan-1.dll: failed
2022-05-16 10:24:51,046 [ 365675] WARN - Emulator: Pixel 5 API Tiramisu - cannot add library vulkan-1.dll: failed
2022-05-16 10:24:51,073 [ 365702] INFO - Emulator: Pixel 5 API Tiramisu - configAndStartRenderer: setting vsync to 60 hz
2022-05-16 10:24:51,073 [ 365702] INFO - Emulator: Pixel 5 API Tiramisu - Sending adb public key [QAAAAC03lzdbz2r7trf4HeurXGQ9LdN2Kex6Luf2QjY0wlgNvxm+NCxU0TyJXB+NOfqXcglhbuChvc1zyLz57tbnSrH5zzmXMzN4WmbS9BTW5uIuNfLGP+TQRdHvBiWvqgkOSOKqp4NQiclDOfet4EuGUqRvxGuKbEYLWMsVHfMnXWSOuuUr5hQl1s/MPKkthtC0fVTDJMQIV5xAN85Z9pUhUqOdxPyU4X8xvo/nFFOaZLD4h+UyKp4Yn6WXvm+Q0aceAr2YvEirpBUbj2KFoMzFP29kokuZTmtENhEF/WQXjQ8OhecQ99z3NUQdIhWDk3x8xKvkWepxWCtKVGn3jCJObE8c4bGt2OUmsWQkvVP/9/5wh+B0qLTtInXtoQiNman64QEvrZMYOPZxIJ+RNBExu5pJytEK5ntxQhQPUcL3aY+mNNCQotGXyJrxPIvtiEJyUFHfQcM+Ulned9eDGTNN0TcOOWjBcKUoMt9NllZ5/mUCSsf0rgyy4YvtLiqV/1EWxYo96kl+v8MH6jMiJN9MHgzPFZMt8+azTZGDoDIbo7T5aBvv3hvECUCiWwIdbhQmK6bKdNqjd8ovnF0hAcporw0iPC+mNWiC9onVToMgJE7oRwtCi42voElCDTl/+cuEVnBREVjk16I31fuWIewM6pBoSM7F3wwPbjRXbsedpuQ613f+HwEAAQA= #unknown]
2022-05-16 10:24:51,074 [ 365703] INFO - Emulator: Pixel 5 API Tiramisu - added library C:\Users\{username}\AppData\Local\Android\Sdk\emulator\lib64\vulkan\vulkan-1.dll
2022-05-16 10:24:51,074 [ 365703] INFO - Emulator: Pixel 5 API Tiramisu - Rootcanal has been activated.
2022-05-16 10:24:51,074 [ 365703] INFO - Emulator: Pixel 5 API Tiramisu - HAX is working and emulator runs in fast virt mode.
2022-05-16 10:24:51,508 [ 366137] INFO - b.PhysicalDeviceChangeListener - emulator-5554 connected
2022-05-16 10:24:51,510 [ 366139] INFO - Emulator: Pixel 5 API Tiramisu - Started GRPC server at 127.0.0.1:8554, security: Local+token
2022-05-16 10:24:51,511 [ 366140] INFO - Emulator: Pixel 5 API Tiramisu - Advertising in: C:\Users\{username}\AppData\Local\Temp\avd\running\pid_3028.ini
2022-05-16 10:24:51,915 [ 366544] INFO - Emulator: Pixel 5 API Tiramisu - VCPU shutdown request
2022-05-16 10:24:51,915 [ 366544] INFO - Emulator: Pixel 5 API Tiramisu - Deleting snapshot default_boot
2022-05-16 10:24:52,061 [ 366690] INFO - Emulator: Pixel 5 API Tiramisu - Shutting down gRPC endpoint
2022-05-16 10:24:52,062 [ 366691] INFO - Emulator: Pixel 5 API Tiramisu - Shutting down gRPC endpoint
2022-05-16 10:24:52,074 [ 366703] INFO - Emulator: Pixel 5 API Tiramisu - Closing down rootcanal.
2022-05-16 10:24:52,473 [ 367102] ERROR - Emulator: Pixel 5 API Tiramisu - Running multiple emulators with the same AVD
2022-05-16 10:24:52,474 [ 367103] ERROR - Emulator: Pixel 5 API Tiramisu - Android Studio Chipmunk | 2021.2.1 Build #AI-212.5712.43.2112.8512546
2022-05-16 10:24:52,485 [ 367114] ERROR - Emulator: Pixel 5 API Tiramisu - JDK: 11.0.12; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-05-16 10:24:52,486 [ 367115] ERROR - Emulator: Pixel 5 API Tiramisu - OS: Windows 10
2022-05-16 10:24:52,487 [ 367116] ERROR - Emulator: Pixel 5 API Tiramisu - Last Action:
2022-05-16 10:24:52,487 [ 367116] ERROR - Emulator: Pixel 5 API Tiramisu - is an experimental feature.
2022-05-16 10:24:52,487 [ 367116] ERROR - Emulator: Pixel 5 API Tiramisu - Android Studio Chipmunk | 2021.2.1 Build #AI-212.5712.43.2112.8512546
2022-05-16 10:24:52,487 [ 367116] ERROR - Emulator: Pixel 5 API Tiramisu - JDK: 11.0.12; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-05-16 10:24:52,488 [ 367117] ERROR - Emulator: Pixel 5 API Tiramisu - OS: Windows 10
2022-05-16 10:24:52,488 [ 367117] ERROR - Emulator: Pixel 5 API Tiramisu - Last Action:
2022-05-16 10:24:52,488 [ 367117] ERROR - Emulator: Pixel 5 API Tiramisu - Please use -read-only flag to enable this feature.
2022-05-16 10:24:52,489 [ 367118] ERROR - Emulator: Pixel 5 API Tiramisu - Android Studio Chipmunk | 2021.2.1 Build #AI-212.5712.43.2112.8512546
2022-05-16 10:24:52,489 [ 367118] ERROR - Emulator: Pixel 5 API Tiramisu - JDK: 11.0.12; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-05-16 10:24:52,489 [ 367118] ERROR - Emulator: Pixel 5 API Tiramisu - OS: Windows 10
2022-05-16 10:24:52,490 [ 367119] ERROR - Emulator: Pixel 5 API Tiramisu - Last Action:
2022-05-16 10:24:52,491 [ 367120] INFO - Emulator: Pixel 5 API Tiramisu - Android emulator version 31.2.10.0 (build_id 8420304) (CL:N/A)
2022-05-16 10:24:52,588 [ 367217] INFO - Emulator: Pixel 5 API Tiramisu - Process finished with exit code 1
2022-05-16 10:24:52,588 [ 367217] ERROR - Emulator: Pixel 5 API Tiramisu - Emulator terminated with exit code 1
java.lang.Throwable: Emulator terminated with exit code 1
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:182)
at com.android.tools.idea.avdmanager.EmulatorProcessHandler$ConsoleListener.onTextAvailable(EmulatorProcessHandler.kt:89)
at jdk.internal.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:247)
at com.sun.proxy.$Proxy33.onTextAvailable(Unknown Source)
at com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:221)
at com.intellij.execution.process.ProcessTerminatedListener.processTerminated(ProcessTerminatedListener.java:54)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:247)
at com.sun.proxy.$Proxy33.processTerminated(Unknown Source)
at com.intellij.execution.process.ProcessHandler.lambda$notifyTerminated$2(ProcessHandler.java:205)
at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:280)
at com.intellij.execution.process.ProcessHandler.notifyTerminated(ProcessHandler.java:188)
at com.intellij.execution.process.ProcessHandler.notifyProcessTerminated(ProcessHandler.java:184)
at com.intellij.execution.process.BaseProcessHandler.onOSProcessTerminated(BaseProcessHandler.java:61)
at com.intellij.execution.process.BaseOSProcessHandler$1.lambda$startNotified$0(BaseOSProcessHandler.java:99)
at com.intellij.execution.process.ProcessWaitFor.lambda$new$0(ProcessWaitFor.java:45)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)
at com.intellij.execution.process.ProcessWaitFor.lambda$new$1(ProcessWaitFor.java:23)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
2022-05-16 10:24:52,591 [ 367220] ERROR - Emulator: Pixel 5 API Tiramisu - Android Studio Chipmunk | 2021.2.1 Build #AI-212.5712.43.2112.8512546
2022-05-16 10:24:52,592 [ 367221] ERROR - Emulator: Pixel 5 API Tiramisu - JDK: 11.0.12; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-05-16 10:24:52,592 [ 367221] ERROR - Emulator: Pixel 5 API Tiramisu - OS: Windows 10
2022-05-16 10:24:52,593 [ 367222] ERROR - Emulator: Pixel 5 API Tiramisu - Last Action:
2022-05-16 10:24:53,887 [ 368516] INFO - Emulator: Pixel 5 API Tiramisu - Android emulator version 31.2.10.0 (build_id 8420304) (CL:N/A)
2022-05-16 10:24:53,950 [ 368579] INFO - Emulator: Pixel 5 API Tiramisu - Process finished with exit code 0
2022-05-16 10:24:54,122 [ 368751] INFO - b.PhysicalDeviceChangeListener - emulator-5554 disconnected
2022-05-16 10:25:38,691 [ 413320] INFO - rationStore.ComponentStoreImpl - Saving appClangTidySettings took 16 ms, NotificationConfiguration took 15 ms, YamlEditorOptions took 16 ms
2022-05-16 10:25:38,769 [ 413398] INFO - rationStore.ComponentStoreImpl - Saving Project(name=Learning_Environment, containerState=COMPONENT_CREATED, componentStore=C:\Users\{username}\AndroidStudioProjects\Learning_Environment)FileEditorManager took 15 ms, ServiceViewManager took 16 ms, Vcs.Log.Tabs.Properties took 16 ms, XDebuggerManager took 15 ms

Try to change the graphic of your emulator from automatic to Software

I don't know an exact cause of this problem - it seems something related to graphics, and happened after last emulator update in my case.
What helped me was running emulator using console and changing graphics settings. I'm using Ubuntu 20.04 so all paths are for linux.
List all your avds: $./emulator -list-avds
Then start avd with software acceleration mode: $./emulator -avd MY_AVD_NAME -gpu swiftshader_indirect - this very line started my avd. This is enough to use the emulator.
(Optional) I wanted to be able to start emulator from Android Studio, so tried different settings in avd, and what works was:
After this you can run your avd from AS or just with $./emulator -avd MY_AVD_NAME
Also it looks like there is an alternative way: change setting in /home/user/.android/avd/MY_AVD_NAME.avd/config.ini file:
hw.gpu.enabled = yes
hw.gpu.mode = swiftshader_indirect
Google link: https://developer.android.com/studio/run/emulator-acceleration#command-gpu

Related

Why the emulator process has terminated?

I just installed the latest Android Studio (Dolphin) and added an AVD (Pixel 4 API 31).
When launching the emulator, I run into the following error:
The emulator process has terminated
Here's the log details. I've tried suggestions like making sure the SDK build is at least 30.0.2 (it's 30.0.3), and launching in separate window, invalidating the cache and restarting... nothing helps.
2022-11-08 01:49:12,495 [ 296648] WARN - Emulator: Pixel 4 API 31 - unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
2022-11-08 01:49:13,223 [ 297376] INFO - oject.common.GradleInitScripts - init script file sync.studio.tooling contents "initscript {\n dependencies {\n classpath files(['C:\\\\Program Files\\\\Android\\\\Android Studio\\\\plugins\\\\android\\\\lib\\\\android.jar', 'C:\\\\Program Files\\\\Android\\\\Android Studio\\\\plugins\\\\android\\\\lib\\\\android.jar', 'C:\\\\Program Files\\\\Android\\\\Android Studio\\\\lib\\\\kotlin-stdlib-1.5.10-release-949.jar'])\n }\n}\nallprojects {\n apply plugin: com.android.ide.gradle.model.builder.AndroidStudioToolingPlugin\n}\n"
2022-11-08 01:49:13,301 [ 297454] INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: --init-script C:\Users\NUser\AppData\Local\Temp\ijmapper.gradle -Didea.sync.active=true -Didea.resolveSourceSetDependencies=true -Porg.gradle.kotlin.dsl.provider.cid=6451108675200 --init-script C:\Users\NUser\AppData\Local\Temp\sync.studio.tooling.gradle -Djava.awt.headless=true --stacktrace -Pandroid.injected.build.model.only=true -Pandroid.injected.build.model.only.advanced=true -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.build.model.only.versioned=3 -Pandroid.injected.studio.version=2021.3.1 Patch 1 -Pandroid.injected.build.model.disable.src.download=true -Pidea.gradle.do.not.build.tasks=true -Dorg.gradle.internal.GradleProjectBuilderOptions=omit_all_tasks -Pkotlin.mpp.enableIntransitiveMetadataConfiguration=true --init-script C:\Users\NUser\AppData\Local\Temp\ijinit.gradle
2022-11-08 01:49:14,129 [ 298282] INFO - Emulator: Pixel 4 API 31 - Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
2022-11-08 01:49:14,129 [ 298282] INFO - Emulator: Pixel 4 API 31 - IPv4 server found: 192.168....
2022-11-08 01:49:14,129 [ 298282] INFO - Emulator: Pixel 4 API 31 - IPv6 DNS server found: 2600:1...::1
2022-11-08 01:49:14,129 [ 298282] INFO - Emulator: Pixel 4 API 31 - added library vulkan-1.dll
2022-11-08 01:49:14,129 [ 298282] INFO - Emulator: Pixel 4 API 31 - configAndStartRenderer: setting vsync to 60 hz
2022-11-08 01:49:14,129 [ 298282] INFO - Emulator: Pixel 4 API 31 - Sending adb public key [Q...A= #unknown]
2022-11-08 01:49:14,129 [ 298282] INFO - Emulator: Pixel 4 API 31 - injectedQemuChannel!
2022-11-08 01:49:14,130 [ 298283] INFO - Emulator: Pixel 4 API 31 - Informing listeners of injection.
2022-11-08 01:49:14,130 [ 298283] INFO - Emulator: Pixel 4 API 31 - Rootcanal has been activated.
2022-11-08 01:49:14,130 [ 298283] INFO - Emulator: Pixel 4 API 31 - HAX is working and emulator runs in fast virt mode.
2022-11-08 01:49:15,260 [ 299413] INFO - ab.VirtualDeviceChangeListener - emulator-5554 connected
2022-11-08 01:49:15,260 [ 299413] WARN - Emulator: Pixel 4 API 31 - *** No gRPC protection active, consider launching with the -grpc-use-jwt flag.***
2022-11-08 01:49:15,261 [ 299414] INFO - Emulator: Pixel 4 API 31 - Started GRPC server at 127.0.0.1:8554, security: Local, auth: none
2022-11-08 01:49:15,261 [ 299414] INFO - Emulator: Pixel 4 API 31 - Advertising in: C:\Users\NUser\AppData\Local\Temp\avd\running\pid_13412.ini
2022-11-08 01:49:15,331 [ 299484] INFO - Emulator: Pixel 4 API 31 - setDisplayConfigs w 1080 h 2280 dpiX 440 dpiY 440
2022-11-08 01:49:16,450 [ 300603] INFO - Emulator: Pixel 4 API 31 - VCPU shutdown request
2022-11-08 01:49:16,451 [ 300604] INFO - Emulator: Pixel 4 API 31 - VCPU shutdown request
2022-11-08 01:49:16,451 [ 300604] INFO - Emulator: Pixel 4 API 31 - VCPU shutdown request
2022-11-08 01:49:16,451 [ 300604] INFO - Emulator: Pixel 4 API 31 - VCPU shutdown request
2022-11-08 01:49:16,451 [ 300604] INFO - Emulator: Pixel 4 API 31 - VCPU shutdown request
2022-11-08 01:49:16,451 [ 300604] INFO - Emulator: Pixel 4 API 31 - Deleting snapshot default_boot
2022-11-08 01:49:16,454 [ 300607] INFO - Emulator: Pixel 4 API 31 - VCPU shutdown request
2022-11-08 01:49:17,442 [ 301595] INFO - Emulator: Pixel 4 API 31 - Closing down rootcanal.
2022-11-08 01:49:18,223 [ 302376] INFO - ab.VirtualDeviceChangeListener - emulator-5554 disconnected
2022-11-08 01:49:18,465 [ 302618] INFO - Emulator: Pixel 4 API 31 - Process finished with exit code 0
I deleted the Pixel4 emulator and created an emulator with following specs:
Pixel 6 API 25
Android 7.1.1 Google APIs | x86 (recommended default)
and that worked...
My issue got resolved when I changed the ABI setting from "x86_64" to "arm64-v8a"

How can we view the error logs which caused "Error while waiting for device: The emulator process for AVD Pixel_2_API_30 has terminated."

2022-05-05 07:44:41,561 [3360158] INFO - WindowsPerformanceHintsChecker - Windows Defender status: UNKNOWN_STATUS; projectDirExcluded? false
2022-05-05 07:44:41,594 [3360191] INFO - ild.invoker.GradleBuildInvoker - Gradle build finished in 949 ms
2022-05-05 07:44:41,594 [3360191] INFO - a.gradle.run.MakeBeforeRunTask - Couldn't get post build models.
2022-05-05 07:44:41,594 [3360191] INFO - a.gradle.run.MakeBeforeRunTask - Gradle invocation complete, success = true
2022-05-05 07:44:43,200 [3361797] INFO - manager.EmulatorProcessHandler - Emulator: init: Could not find wglGetExtensionsString! arbFound 0 listarbNull/empty 1 0 extFound 0 extNull/empty 1 0 remote 0
2022-05-05 07:44:43,219 [3361816] INFO - manager.EmulatorProcessHandler - Emulator: OpenGL Core Profile not supported.
2022-05-05 07:44:43,219 [3361816] INFO - manager.EmulatorProcessHandler - Emulator: ERROR | Could not find GLES 2.x config!
2022-05-05 07:44:43,219 [3361816] INFO - manager.EmulatorProcessHandler - Emulator: ERROR | Failed to obtain GLES 2.x extensions string!
2022-05-05 07:44:43,219 [3361816] INFO - manager.EmulatorProcessHandler - Emulator: ERROR | Could not initialize emulated framebuffer
2022-05-05 07:44:43,219 [3361816] INFO - manager.EmulatorProcessHandler - Emulator:
2022-05-05 07:44:43,235 [3361832] INFO - manager.EmulatorProcessHandler - Emulator: ERROR | Failed to open /qemu.conf, err: 2
2022-05-05 07:44:43,266 [3361863] INFO - manager.EmulatorProcessHandler - Emulator: INFO | added library vulkan-1.dll
2022-05-05 07:44:43,266 [3361863] INFO - manager.EmulatorProcessHandler - Emulator: HAX is working and emulator runs in fast virt mode.
2022-05-05 07:44:43,652 [3362249] INFO - b.PhysicalDeviceChangeListener - emulator-5554 connected
2022-05-05 07:44:43,685 [3362282] INFO - manager.EmulatorProcessHandler - Emulator: INFO | Started GRPC server at 127.0.0.1:8554, security: Local
2022-05-05 07:44:43,685 [3362282] INFO - manager.EmulatorProcessHandler - Emulator: INFO | Advertising in: C:\Users\DELL\AppData\Local\Temp\avd\running\pid_4740.ini
2022-05-05 07:44:43,746 [3362343] INFO - manager.EmulatorProcessHandler - Emulator: ERROR | OpenGLES emulation failed to initialize. Please consider the following troubleshooting steps:
2022-05-05 07:44:43,746 [3362343] INFO - manager.EmulatorProcessHandler - Emulator:
2022-05-05 07:44:43,746 [3362343] INFO - manager.EmulatorProcessHandler - Emulator: 1. Make sure your GPU drivers are up to date.
2022-05-05 07:44:43,746 [3362343] INFO - manager.EmulatorProcessHandler - Emulator:
2022-05-05 07:44:43,746 [3362343] INFO - manager.EmulatorProcessHandler - Emulator: 2. Erase and re-download the emulator ($ANDROID_SDK_ROOT/emulator).
2022-05-05 07:44:43,746 [3362343] INFO - manager.EmulatorProcessHandler - Emulator:
2022-05-05 07:44:43,746 [3362343] INFO - manager.EmulatorProcessHandler - Emulator: 3. Try software rendering: Go to Extended Controls > Settings > Advanced tab and change "OpenGL ES renderer (requires restart)" to "Swiftshader".
2022-05-05 07:44:43,746 [3362343] INFO - manager.EmulatorProcessHandler - Emulator:
2022-05-05 07:44:43,746 [3362343] INFO - manager.EmulatorProcessHandler - Emulator: Or, run emulator from command line with "-gpu swiftshader_indirect". 4. Please file an issue to https://issuetracker.google.com/issues?q=componentid:192727 and provide your complete CPU/GPU info plus OS and display setup.
2022-05-05 07:44:43,746 [3362343] INFO - manager.EmulatorProcessHandler - Emulator:
2022-05-05 07:44:43,761 [3362358] INFO - manager.EmulatorProcessHandler - Emulator: ERROR | crashhandler_die: fatal: OpenGLES emulation failed to initialize. Please consider the following troubleshooting steps:
2022-05-05 07:44:43,761 [3362358] INFO - manager.EmulatorProcessHandler - Emulator:
2022-05-05 07:44:43,761 [3362358] INFO - manager.EmulatorProcessHandler - Emulator: 1. Make sure your GPU drivers are up to date.
2022-05-05 07:44:43,761 [3362358] INFO - manager.EmulatorProcessHandler - Emulator:
2022-05-05 07:44:43,761 [3362358] INFO - manager.EmulatorProcessHandler - Emulator: 2. Erase and re-download the emulator ($ANDROID_SDK_ROOT/emulator).
2022-05-05 07:44:43,761 [3362358] INFO - manager.EmulatorProcessHandler - Emulator:
2022-05-05 07:44:43,761 [3362358] INFO - manager.EmulatorProcessHandler - Emulator: 3. Try software rendering: Go to Extended Controls > Settings > Advanced tab and change "OpenGL ES renderer (requires restart)" to "Swiftshader".
2022-05-05 07:44:43,761 [3362358] INFO - manager.EmulatorProcessHandler - Emulator:
2022-05-05 07:44:43,761 [3362358] INFO - manager.EmulatorProcessHandler - Emulator: Or, run emulator from command line with "-gpu swiftshader_indirect". 4. Please file an issue to https://issuetracker.google.com/issues?q=componentid:192727 and provide your complete CPU/GPU info plus OS and display setup.
2022-05-05 07:44:43,761 [3362358] INFO - manager.EmulatorProcessHandler - Emulator:
2022-05-05 07:44:45,156 [3363753] INFO - manager.EmulatorProcessHandler - Emulator: INFO | Android emulator version 31.2.10.0 (build_id 8420304) (CL:N/A)
2022-05-05 07:44:45,156 [3363753] INFO - manager.EmulatorProcessHandler - Emulator: Process finished with exit code -1073741819 (0xC0000005)
2022-05-05 07:44:45,156 [3363753] WARN - manager.EmulatorProcessHandler - Emulator terminated with exit code -1073741819
2022-05-05 07:44:45,326 [3363923] INFO - run.AndroidLogcatOutputCapture - stopAll()
2022-05-05 07:44:45,381 [3363978] INFO - b.PhysicalDeviceChangeListener - emulator-5554 disconnected
2022-05-05 07:44:52,171 [3370768] INFO - s.MemorySettingsRecommendation - recommendation based on machine: 1280, on project: 1280

Android Studio Windows 8.1 Emulator: Process finished with exit code -1073741819 (0xC0000005)

I am running Android Studio on Windows 8.1. When I try to run simple Hello World on a virtual device, it shows briefly then exits with dialog "The emulator process for AVD [device] has terminated.
Here is the output from the idea.log:
INFO - manager.EmulatorProcessHandler - Emulator: C:\Users\[my_username]\AppData\Local\Android\sdk\emulator\emulator.exe -netdelay none -netspeed full -avd Nexus_4_API_22
INFO - manager.EmulatorProcessHandler - Emulator: WARNING | encryption is off
INFO - manager.EmulatorProcessHandler - Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.
INFO - manager.EmulatorProcessHandler - Emulator: WARNING | Not all modern X86 virtualization features supported, which introduces problems with slowdown when running Android on multicore vCPUs. Setting AVD to run with 1 vCPU core only.
INFO - manager.EmulatorProcessHandler - Emulator: WARNING | cannot add library vulkan-1.dll: failed
INFO - manager.EmulatorProcessHandler - Emulator: WARNING | cannot add library vulkan-1.dll: failed
INFO - manager.EmulatorProcessHandler - Emulator: INFO | configAndStartRenderer: setting vsync to 60 hz
INFO - manager.EmulatorProcessHandler - Emulator: INFO | added library C:\Users\[my_username]\AppData\Local\Android\sdk\emulator\lib64\vulkan\vulkan-1.dll
INFO - manager.EmulatorProcessHandler - Emulator: HAX is working and emulator runs in fast virt mode.
INFO - b.PhysicalDeviceChangeListener - emulator-5554 connected
INFO - manager.EmulatorProcessHandler - Emulator: INFO | Started GRPC server at 127.0.0.1:8554, security: Local
INFO - manager.EmulatorProcessHandler - Emulator: INFO | Advertising in: C:\Users\[my_username]\AppData\Local\Temp\avd\running\pid_1072.ini
INFO - b.PhysicalDeviceChangeListener - emulator-5554 state changed to ONLINE
INFO - b.PhysicalDeviceChangeListener - emulator-5554 state changed to OFFLINE
WARN - #com.android.ddmlib - Failed to start monitoring emulator-5554
INFO - manager.EmulatorProcessHandler - Emulator: INFO | Android emulator version 31.2.8.0 (build_id 8143646) (CL:N/A)
INFO - manager.EmulatorProcessHandler - Emulator: Process finished with exit code -1073741819 (0xC0000005)
WARN - manager.EmulatorProcessHandler - Emulator terminated with exit code -1073741819
INFO - b.PhysicalDeviceChangeListener - emulator-5554 disconnected
However, I am able to run it from the command line successfully. The log is nearly identical:
I have searched these forums and tried everything:
Change Graphics Performance option to "Software"
Cold Boot Now option
Wipe Data option
Delete .android folder
Delete, create multiple different virtual devices
Run as Administrator
Install, reinstall Android Emulator
Increase IDE memory to max (2GB)
Reboot machine
I am out of ideas. Has anyone been able to solve this?
Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 16, 2022
Runtime version: 11.0.11+9-b1341.60 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 8.1 6.3
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: mobi.hsz.idea.gitignore (4.1.0), org.intellij.plugins.markdown (211.7142.37)

ADB rejected shell command (getprop): closed

Using Android Studio and when trying to run a simple demonstration app the emulator I selected starts up but never renders the app. In the event log I see stuff like the following:
2:59 PM Emulator: emulator: WARNING: Host CPU is missing the following
feature(s) required for x86 emulation: SSSE3
2:59 PM Emulator: Hardware-accelerated emulation may not work
properly!
2:59 PM Emulator: qemu-system-x86_64: warning: host doesn't support
requested feature: CPUID.01H:ECX.ssse3 [bit 9]
2:59 PM Emulator: qemu-system-x86_64: warning: host doesn't support
requested feature: CPUID.01H:ECX.sse4.1 [bit 19]
2:59 PM Emulator: qemu-system-x86_64: warning: host doesn't support
requested feature: CPUID.01H:ECX.sse4.2 [bit 20]
2:59 PM ADB rejected shell command (getprop): closed
2:59 PM Emulator: Process finished with exit code 0
Tried restarting Android Studio
Tried recreating the AVD image
Tried killing and restarting adb
Running Ubuntu 18.04 with Android Studio 3.4
I expected that the emulator would start up and render the app created so far. I'm following https://www.youtube.com/watch?v=dFlPARW5IX8 and at about 21:22.
It says to press play and the emulator should start and show the app we have coded so far. I never see this.

Cannot set up the virtual device in android studio

I am new to android studio. And i am trying to set up a virtual device for my project. One the virtual device is created and when i run it virtual device is not displaying and it gives me following errors.How can i resolve this in order to run the virtual device.
Errors as follows
10:06 AM Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.
10:06 AM Emulator: init: Could not find wglGetExtensionsStringARB!
10:06 AM Emulator: getGLES2ExtensionString: Could not find GLES 2.x config!
10:06 AM Emulator: Failed to obtain GLES 2.x extensions string!
10:06 AM Emulator: Could not initialize emulated framebuffer
10:06 AM Emulator: emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
10:06 AM Emulator: Process finished with exit code -1073741819 (0xC0000005)

Resources