Habibul Bashar
Habibul Bashar

Reputation: 111

Error while waiting for device: Timed out after 300seconds waiting for emulator to come online

I have been trying to use android studio emulator but I can not run my App on the Emulator. When I Run my App it shows the emulator with following details:

After that it takes to next TAB Launching app and shows waiting for the device to come online. After that it shows error:

Error while waiting for device: Time out after 300 seconds waiting for emulator to come online.

Anyone know any solution.

Upvotes: 11

Views: 46258

Answers (9)

Xhyub
Xhyub

Reputation: 31

If the emulator doesn't work with the IDE release you are using, you could revert back to a working version. https://developer.android.com/studio/emulator_archive.

Upvotes: 0

ssindher11
ssindher11

Reputation: 247

I went through a lot of posts. But none of them seemed to work for me. Every time I tried to start the emulator, the process seemed to be "not responding" after a minute or so. I tried restarting my PC, adb, created new devices, even re-installed Android Emulator, but nothing worked. Surprisingly enough, what worked though was to move the emulator out of Android Studio.

  • Go to Preferences -> search for Emulator -> Uncheck Launch in a tool window

I am using Mac M1 Pro with Android Studio Bumblebee | 2021.1.1

Upvotes: 0

batthis
batthis

Reputation: 157

Check updates.... Emulator had an update. After I updated worked fine.

Upvotes: 0

Tasos Anesiadis
Tasos Anesiadis

Reputation: 1150

I tried everything here and other questions too, but the only solution for me was to create a new AVD. Also downgraded from Pixel3XL to Pixel2, not sure if it matters. (Kept same android version)

Upvotes: -1

MrRobot
MrRobot

Reputation: 309

This Worked for me:

GoTo SDK Manager -> SDK Tools -> Check that the android emulator has the latest version and If doesn't install the updates.

I had the same error described here.

Hope This Helps

Upvotes: 2

Léa
Léa

Reputation: 51

This helped me: https://www.youtube.com/watch?v=avcOIrtimMU

Click on app: edit configurations;

In Launch Options: choose Specific Activity

In Activity: specify your main class: com.example.budgetapp.MainActivity

And, run.

Upvotes: 2

Ahmad Zakaria
Ahmad Zakaria

Reputation: 13

  1. Open the AVD Manager.
  2. Create a new AVD or edit an existing AVD.
  3. In the Verify Configuration page, specify the Emulated Performance: Graphics change to sofware or hadware

good luck

Upvotes: -1

SachinSarawgi
SachinSarawgi

Reputation: 2692

I was also facing this timeout error. Here is the solution worked for me

Launch Task Manager -> Search for adb.exe in process list->End the process->Try relaunching the emulator it will start.

Upvotes: 3

eRaisedToX
eRaisedToX

Reputation: 3361

Although there could be various reasons for this behaviour.... Mostly it may be due to error in system images or the API version you are using

better you download latest system images and make sure the compatibilty of API version you are using.

enter image description here

If problem exists

I would like to suggest some fixes: Try them

1)Uninstall/Reinstall Android SDK to folder.

OR

2) delete the emulator and create another emulator targeted at the appropriate API Level.

OR

3)create a new Virtual Device.

OR

4)set "Max VM application heap size" hardware property to 192 or higher and pick the QVGA skin.

hope it helps.

Upvotes: 7

Related Questions