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
CodePudding user response:
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
CodePudding user response:
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
CodePudding user response:
Solution1
- Stop Emulator from AVD Manager
- From Android Studio, select “Tools” > “Android” > AVD Manager.
- Right-click the emulator you are using, then choose “Stop“.
- 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
- From Android Studio, select “Tools” > “Android” > AVD Manager.
- Right-click the emulator you are using, then choose “Wipe Data“.
- Try running the emulator again.
Solution 4 – Uninstall and Reinstall AVD
- From Android Studio, select “Tools” > “SDK Manager” > “SDK Tools“.
- Uncheck “Android Emulator“.
- Select “Apply” to have the emulator uninstalled.
- Once the emulator has been removed, check the “Android Emulator” box again, then select “Apply” to reinstall it.
Solution 5 - Coldboot
- Go to Device Manager.
- Right-click your virtual device.
- Select Cold Boot Now.
Extra
- Make use of Android Studio’s ‘Instant Run’
- Install HAXM and Switch to x86. …
- Virtual machine acceleration. …
- Disable the emulator’s boot animation.
- Free your ram by closing unnecessary apps.