Android Studio guest hasn't come online in 7 s

2020-02-24 04:31发布

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.

9条回答
Emotional °昔
2楼-- · 2020-02-24 05:05

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

查看更多
ゆ 、 Hurt°
3楼-- · 2020-02-24 05:06

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.

查看更多
我想做一个坏孩纸
4楼-- · 2020-02-24 05:08

tools->Android->AVD Manager

Choose the device then Cold Boot Now

查看更多
女痞
5楼-- · 2020-02-24 05:12
  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.

查看更多
Emotional °昔
6楼-- · 2020-02-24 05:15

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
查看更多
戒情不戒烟
7楼-- · 2020-02-24 05:27

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.

查看更多
登录 后发表回答