Android AVD - The emulator process for AVD <emulator_name> has terminated [duplicate]
Asked Answered
R

10

10

I searched here on StackOverflow and found many similar questions with many different answers, but none of them worked for me.

So,I was using the emulators from Android Studio very well on the last days until I tried to add a new Virtual Device with Google Play API, When I tried to run it this message appeared:

The emulator process for AVD <emulator_name> has terminated.

I tried many different things and also removed all emulators I had, but now not a single one that I create works

Here is the log I get in the Android Studio logs:

[1647414]   INFO - manager.EmulatorProcessHandler - Emulator: C:\Users\2DWeb\AppData\Local\Android\Sdk\emulator\emulator.exe -netdelay none -netspeed full -no-snapstorage -avd cel_30_debug1 
[1649364]   INFO - manager.EmulatorProcessHandler - Emulator: WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator. 
[1649364]   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. 
[1649380]   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. 
[1650143]   INFO - manager.EmulatorProcessHandler - Emulator: C:\Users\2DWeb\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe:/qemu.conf:1: no group defined 
[1651630]   INFO - manager.EmulatorProcessHandler - Emulator: INFO    | configAndStartRenderer: setting vsync to 60 hz 
[1651630]   INFO - manager.EmulatorProcessHandler - Emulator: INFO    | added library vulkan-1.dll 
[1651665]   INFO - manager.EmulatorProcessHandler - Emulator: INFO    | Android emulator version 31.1.4.0 (build_id 7920983) (CL:N/A) 
[1651665]   INFO - manager.EmulatorProcessHandler - Emulator: Process finished with exit code 0 

I even unninstalled Android Studio and deleted all related directories and installed it all again, didn't work.

Some important things:

  • Tried With or without Google Play API or Google APIs
  • Tried different SDK APIs (8.1 [API 27], 10 [API 29], 11 [API 30]...)
  • I have free space on HD: about 40gb
  • The emulator is setted to 16gb of internal storage
  • I tried x86 and x86_64 architecture (both was working two days ago)
  • Tried Quick Boot and Cold Boot
  • Tried to add a new emulator and don't change anything on the specs (using default)
  • The Android Emulator on SDK Tools is updated to latest version (31.1.4)
  • Installed the latest HAXM version (7.7.0)
  • I have an Intel processor (and as far as I know, no changes were made on it) and 12gb RAM

None of the above made the emulators work.

Ressieressler answered 14/1, 2022 at 12:18 Comment(4)
Hi, are you sure your CPU supports intel vtd-vtx ? Is it on? Have you tried to turn it on using cold boot?Deposit
As you can read in the list of things I tried, in my question. I tried cold boot. Also, i didn't made any changes to my CPU, and last week it was wroking normallyRessieressler
Does this answer your question? Android Emulator issues in new versions - The emulator process has terminatedRascon
Do you have Windows Media Pack installed? on N variants of windows it's not installed by default.Saprophyte
R
3

I made it work...

Apparently, the Android Emulator updated to the latest version was the problem. Apparently many conflicts with vulkan.dll and other emulation process stopped working with this new version (at least for me in my computer).

I downloaded an old version of the android emulator based on this answer and then it started working again...

Ressieressler answered 17/1, 2022 at 20:21 Comment(0)
M
15

Go to your android studio, select “Tools” ->” SDK Manager” -> “SDK Tools” tab -> and update to the latest Android Emulator version. Then rerun your emulator again. Solved! Hope it helps.

Monas answered 3/3, 2022 at 7:33 Comment(3)
To which version of emulator, because as you could read from my question, I did that and it was exactly what caused the problem...Ressieressler
this worked for me. I updated the sdk tools too to the latest versionJuliannajulianne
Yes, that worked. "Help" > "Check for updates" -- then install updates, restart was all it took.Doughnut
P
7

As of May 2020, for Macbook M1 (Pro/Max) users who still struggle....

First, do not launch the emulator from Android Studio. It provides no information other than the unuseful "AVD has been killed or terminated" message.

Instead, type this.

~/Library/Android/sdk/tools/emulator 

it returns a more detailed message like below.

emulator: ERROR: process is translated under Rosetta. Attempting to replace emulator installation.
emulator: Replacing via command: /Users/<USER>/Library/Android/sdk/emulator/darwin-aarch64-replace.sh (downloading ~120 MB)...
sh: /Users/<USER>/Library/Android/sdk/emulator/darwin-aarch64-replace.sh: No such file or directory
emulator: Replacement done. Please relaunch the emulator. You will also need to be using an Apple Silicon-compatible system image. Check the release updates blog (https://androidstudio.googleblog.com/) for more details

So in my case darwin-aarch64-replace.sh is missing!

Download the file from here.

Problem solved.

Prepotent answered 23/6, 2022 at 15:12 Comment(0)
R
3

I made it work...

Apparently, the Android Emulator updated to the latest version was the problem. Apparently many conflicts with vulkan.dll and other emulation process stopped working with this new version (at least for me in my computer).

I downloaded an old version of the android emulator based on this answer and then it started working again...

Ressieressler answered 17/1, 2022 at 20:21 Comment(0)
B
2

On Ubuntu, I had to uninstall NDK (side by side) using the SDK Manager

Bromism answered 7/3, 2022 at 16:1 Comment(1)
With NDK we need to install the C make for it to work developer.android.com/studio/projects/install-ndkDorison
J
1

After trying all the solutions make sure the Disk space is available on your machine. An Emulator requires lots of disk space as it a system on its own.

Jackstraws answered 19/1, 2023 at 11:22 Comment(1)
I had to end up just using my own phone as the device for running it and I suspect this is why.Talanian
D
0

I got this when running my react native app, I manually installed NDK from the SDK manager.

With NDK we need to install the C make for it to work, this is how I solved this issue.

Read the docs for more info.

https://developer.android.com/studio/projects/install-ndk

Dorison answered 18/5, 2022 at 17:58 Comment(0)
S
0

Open the Task Manager and kill the process "qemu-system"

Silage answered 19/7, 2022 at 16:10 Comment(1)
unrelated to the questionFlam
P
0

New Solution i had found for this Go to help and delete Left over IDE Directory and delete all Directory then restart android studio and AVD Its working... Happy Coding

Precept answered 26/7, 2022 at 13:5 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Wilford
M
0

My case: Fixed this problem several times by Kumudika Jayantha's answer above.

But it does not work any more. You can use OmniDeskSweeper app on Mac to delete all Android caches and folders, then re-install Android studio. (Make sure delete all the old Android studio files and download new Android studio app from official site, 2 hours on this problem).

Another case: You can use OmniDeskSweeper to find and delete all *.lock files.

enter image description here

Millican answered 9/9, 2022 at 18:8 Comment(0)
H
-1

After having tried many things, the only one that worked for me was the following: enter Device Mirroring Settings and enable the option, "Turn off device display while mirroring." After that, it is important that you first initialize it from Device Manager.

Image

Hirokohiroshi answered 27/11, 2023 at 9:20 Comment(1)
Please do not post duplicated answers to multiple questions. Instead, answer the best one you can find and, once you reach 15 reputation, flag the other question as a duplicate, associating the questions with each other and thus keeping knowledge centralised.Karlmarxstadt

© 2022 - 2024 — McMap. All rights reserved.