DEV Community 👩‍💻👨‍💻

kamasuPaul
kamasuPaul

Posted on

"Connecting to emulator" taking long in android studio solution

You have probably installed a new version of android studio, and then all of a sudden the emulator is not opening . It keeps displaying the message

Connecting to emulator.
and this is probably taking longer than usual.

I faced this same issue after installing anew version of android studio. I tried the following solutions from stack overflow

  1. Creating a new emulator
  2. Cold booting the emulator
  3. Wiping the emulator data

All these solutions did not work.

The solution.

So how did i solve this problem of emulator taking long and most importantly how can you solve it as well.

The emulator is taking long to connect mostly probably because your android emulator sdk is out of date.
So the solution to uninstall it or update.
To do this, head over to android studio

  1. From the toolbar of android studio open Tools
  2. Then select Sdk manager from the dropdown menu
  3. The android sdk section should appear.
  4. Under the 'Android sdk' section, select SDK tools tab.
  5. Under the SDK tools tab look for the android emulator
  6. Uncheck the box appearing besides the android emulator and click apply button to unistall the emulator
  7. After uninstalling, it should now display as not installed. check the box again to install the emulator again. After installation it should appear as installed. Close android studio and open it again

And now when you click run the emulator should open as expected.
Hopefully this solves your problem as it solved mine.

Top comments (1)

Collapse
 
omwaka profile image
Ben Okello

Nice Piece

🌚 Life is too short to browse without dark mode