Android Studio guest hasn't come online in 7 seconds

Android Studio

Android Studio Problem Overview


When I first start the emulator in Android Studio I get an information message,

> guest hasn't come online in 7 seconds retrying

I am curious as to how to stop this because while it is on my screen for about 40 seconds I cannot do anything in the emulator.

Android Studio Solutions


Solution 1 - Android Studio

Actually 'Cold Boot Now' may work in this situation avd manager with emulator action menu showing Cold Boot Now option

Solution 2 - Android Studio

I had the same problem. Selecting Cold Boot Now in AVD manager solves the problem.

But I have to open AVD manager each time when I want to launch Emulator and I just want to click on Run app button and select device, without opening AVD manager.

To solve this: open AVD manager -> Edit device -> Show Advanced Settings -> Boot option -> select Cold Boot instead of Quick boot.

Solution 3 - Android Studio

tools->Android->AVD Manager

Choose the device then Cold Boot Now

Solution 4 - Android Studio

maybe it's bug from intel haxm 6.2.1, because after i update i got same problem.

I solved by recreate emulator and testing again

Solution 5 - Android Studio

I managed to solve this issue by updating the .ini file manually. (I was not able to find a corresponding setting in the GUI.)

The location of the .ini file, relative to your home directory, is:

~/.android/avd/MyDevice.avd/config.ini

where MyDevice refers to the configured device name.

Depending on your operating system, you may find your home directory according https://en.wikipedia.org/wiki/Home_directory.

Change the entry within config.ini from no to yes:

fastboot.forceColdBoot=yes

Solution 6 - Android Studio

  1. I specified AVD memory 2048 Mbyte instead of 1536 Mbyte. Things started to work again. (I'm developing on macbook.)
  2. I tried "Kuldeep Chandel" solution which is to duplicate AVD and my app runs again too. Because of that I specified RAM again as 1536 Mbyte. Guess what... It worked...

I think AVD confuses to handle things and we need to duplicate the current AVD, and use it instead of the problematic one.

Solution 7 - Android Studio

In "Your Virual Device" - Click on Duplicate OR Duplicate your Device. It will work like Charm.

Solution 8 - Android Studio

I faced this issue on using Android API 28 emulator with Android Studio 3.0.1. Android API 28 requires Studio 3.1 and above. Once I updated Studio to 3.1.4 and Android Emulator to the latest version, it worked.

Solution 9 - Android Studio

Seting default settings for problem device from Android Device Manager resolved issue for me.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJinzuView Question on Stackoverflow
Solution 1 - Android StudioBoris TreukhovView Answer on Stackoverflow
Solution 2 - Android StudioresearcherView Answer on Stackoverflow
Solution 3 - Android StudioChristina XuView Answer on Stackoverflow
Solution 4 - Android StudioDanniel Agus WahyudiView Answer on Stackoverflow
Solution 5 - Android StudioGerhardView Answer on Stackoverflow
Solution 6 - Android StudiomutlugokhanView Answer on Stackoverflow
Solution 7 - Android StudioKuldeep ChandelView Answer on Stackoverflow
Solution 8 - Android StudiogarnetView Answer on Stackoverflow
Solution 9 - Android StudioRoman MurtazinView Answer on Stackoverflow