Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Emulator got stuck at "shutting down"

The emulator in my android studio keeps showing "shutting down". I try closing it and run again, restarting my mac, but nothing worked, each time I run it, it shows "shutting down" again. even though I can see actions running below (very blur) enter image description here

like image 616
Lei Avatar asked Feb 13 '21 08:02

Lei


Video Answer


2 Answers

  • Click on Tools
  • Click on AVD Manager
  • Click on the dropdown arrow next to the AVD which is stuck
  • Click on cold boot now

This issue occurs when we forcibly exit an unresponsive/stuck AVD. AVD manager saves the state before it is forcibly exited and on the next start it continues from the unresponsive/stuck state. This is useful when we need the AVD to boot up quickly, however if you want to disable this feature entirely then follow the steps below:

  • In the AVD manager, click on the pencil icon
  • A new window will pop up. Click on show advanced settings
  • Scroll down to the emulated performance section
  • Next to boot option, select cold boot

like image 85
pythonista Avatar answered Sep 25 '22 09:09

pythonista


  • open AVD Manager Dialog from top right corner
  • go to your emulator
  • click on the last icon on the right which is a drop down button
  • Click wipe data

Important Note: this will delete all data on that emulator and give it a fresh install again and might solve your problem

If that didn't work then check that you have enough rams to run both the emulator and the android studio.

like image 43
Ziyad Mansy Avatar answered Sep 22 '22 09:09

Ziyad Mansy