7
votes

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:

  • Hax is enabled

  • Hax ram_size 0x40000000

  • HAX is working and emulator runs in fast virt mode.

  • Console on port 5554; ADB on port 5555

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.

7
make sure you have install latest version tool ?Harshad Pansuriya

7 Answers

6
votes

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.

2
votes

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.

2
votes

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.

0
votes

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

0
votes

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

-1
votes
  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

-1
votes

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)