Android Studio stuck 'Connecting to emulator'
Asked Answered
S

15

26

I recently updated Android studio, and as usual, it broke. Whenever I try to launch an emulator, Android Studio gets stuck in the 'Connecting to emulator' screen forever.

Things I've tried:

  • Increasing VM heap size to 512mb
  • Decreasing RAM size to 512mb
  • Wiping device data
  • Invalidating cache and restarting Android Studio
  • Changing the device's system image (to API 32 arm64-v8a)
  • Reinstalling the virtual device
  • Installing a new virtual device

I'm on an M1 Macbook and running Android Studio Bumblebee 2021.1.1 Patch 3

edit: I've also tried switching to Cold Boot

Soraya answered 21/4, 2022 at 17:49 Comment(2)
Does this answer your question? Android studio not connecting to virtual deviceMatri
My problem was solved by this answer: https://mcmap.net/q/112702/-emulator-doesn-39-t-start-connecting-to-the-emulatorRavi
E
52

I fixed my issue using the following steps:

Go to Android Studio -> Preferences -> Tools -> Emulator -> Uncheck “Launch in a tool window”.

And retry to launch emulator again OR run app on using the same emulator.

Envoy answered 11/10, 2022 at 10:56 Comment(4)
Thank YOU!! Only this helped me with my Android Automotive OS emulator.Metzgar
Dude, thank you! I had this problem when i upgraded my ionic app to capacitor 4.Afflictive
Can you explain why this fix the issue ?Beriosova
Doesn't work for me on 2021.3.1 Patch 1 :(. Wiping the user data fixes the issue but everytime I close the AVD it gets stuck again and I have to wipe again, horrible bugAhn
P
13

Solution1

  1. Stop Emulator from AVD Manager
  2. From Android Studio, select “Tools” > “Android” > AVD Manager.
  3. Right-click the emulator you are using, then choose “Stop“.
  4. Try running the emulator again.

Solution 2 – Exit Docker (MacOS)

Exit out of the Docker application on your Mac computer, then attempt to launch the emulator again.

Solution 3 – Wipe Image

  1. From Android Studio, select “Tools” > “Android” > AVD Manager.
  2. Right-click the emulator you are using, then choose “Wipe Data“.
  3. Try running the emulator again.

Solution 4 – Uninstall and Reinstall AVD

  1. From Android Studio, select “Tools” > “SDK Manager” > “SDK Tools“.
  2. Uncheck “Android Emulator“.
  3. Select “Apply” to have the emulator uninstalled.
  4. Once the emulator has been removed, check the “Android Emulator” box again, then select “Apply” to reinstall it.

Solution 5 - Coldboot

  1. Go to Device Manager.
  2. Right-click your virtual device.
  3. Select Cold Boot Now.

Extra

  1. Make use of Android Studio’s ‘Instant Run’
  2. Install HAXM and Switch to x86. …
  3. Virtual machine acceleration. …
  4. Disable the emulator’s boot animation.
  5. Free your ram by closing unnecessary apps.
Pekoe answered 22/4, 2022 at 20:50 Comment(3)
cold boot what the solution for meRampart
I'm glad it resolved your issue @OmarZaoujalPekoe
wipe data worked for meScopophilia
E
8

This help me

Go to Device Manager and right-click your virtual device and select Cold Boot Now

Or you can make new virtual device

Ensnare answered 22/4, 2022 at 17:43 Comment(0)
D
3

For me helped to enable checkbox "Enable device frame" in avd config.

Drillstock answered 25/9, 2022 at 8:28 Comment(3)
stupid bug, works for me :)Vickery
Tried this because it was one of the easiest things suggested, and, surprisingly, it worked!Stansberry
Works for me too. I'm using Android Studio Dolphin and the error is only with tablet emulators.Cobol
U
1

Android Studio Hedgehog: in the Device Manager select the device - right menu: Wipe Data then Cold Boot.

Urita answered 20/2, 2024 at 15:29 Comment(0)
D
0

Me Problem Solve By creating new Virtual device by changing from Quick boot to Cold boot.
"In quick boot emulator start from stat that saved when the device last exited"
"while Cold boot emulator start as from a power up"
how to change from QUICK BOOT to COLD BOOT

Decrepitate answered 21/4, 2022 at 18:25 Comment(0)
T
0

If you are running a flutter project, run from the terminal flutter doctor. In my case, it reported that the SDK was not properly set up for flutter.

Tuggle answered 20/12, 2022 at 8:36 Comment(0)
V
0

In my case, I was able to connect by using the "1:1" view when displayed in the tool window. Once it is displayed, you can resize window size.

Steps:

  1. [Connecting to Emulator] prompt shown
  2. Click [1:1] button

The environment is as follows

  • MacBook Air (M1, 2020)
  • Android Studio Dolphin | 2021.3.1 Patch 1
  • Android Emulator 31.3.14
  • Android Tiramisu arm64-v8a
Veinstone answered 5/2, 2023 at 2:10 Comment(0)
B
0

for my case I made a new virtual device to crank or stop the "AVD still running" error. The "Pixel 2 API" is the new virtual device I made because I can't delete, cold boot, and wipe data the "Test HP General" virtual device from "AVD still running" error.

Then, I checked out what should I do with that error and found out you have to uninstall the IDE. But, I don't really want to uninstall the AVD because from other case when I reinstall the AVD I got many problem that makes me have to reset my PC. Because my AMD emulator got bricked.

In short, from making another Virtual Device and run it. The AVD would restart and make the error and booting problem go away.

If this doesn't help, then you should try to do it manually by going to the AVD file section and try to stop it from running in the background.

Bicentenary answered 1/3, 2023 at 3:31 Comment(0)
M
0

wiping user data fixed the issue on my side,

Micromho answered 8/3, 2023 at 7:33 Comment(0)
R
0

I also have the same issue. I solved it by removing data:

  1. To stop a running emulator, click Menu and select Stop.
  2. To clear the data for an emulator, click Menu and select Wipe Data. enter image description here

I hope this help you too. Happy coding!

Rove answered 12/6, 2024 at 22:46 Comment(0)
R
0

As for me shutdown or restart the computer, it is work. (masos)

Roselleroselyn answered 27/6, 2024 at 8:20 Comment(0)
C
0

my fix was to download some emulator components update. just check for updates in Android Studios under Help->check for updates. hope this helps someone save a day of headache!

Clarethaclaretta answered 10/7, 2024 at 20:0 Comment(0)
S
0

Go to File -> Project structure -> Project -> select SDK version. Then you can see emulator name in android studio

enter image description here

Sarmatia answered 23/7, 2024 at 5:57 Comment(0)
S
-3

I was able to fix this by reinstalling Android Studio and the emulator.

Soraya answered 24/4, 2022 at 19:49 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.