Click here to Skip to main content
15,888,293 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friend
This is my First Application Android. That is HelloWorld program. I don't know why my android virtual device AVD appear 4s, then it shut down automatically.
And this is error message:
Java
05/21 15:59:36: Launching app
Error while waiting for device: Timed out after 300seconds waiting for emulator to come online.

Can you help me?
Thank you so much

What I have tried:

Can you help me?
Thank you so much
Posted
Updated 13-Oct-20 3:11am

Solution.1
By setting the Graphics option on the Android Virtual Device to Software instead of Automatic or Hardware. Once you did that the emulator device started up great and everything worked.
Or
Go to Menu->Tools->Android and uncheck the option Enable ADB Integration Run the application. Now the emulator will be launched, but app will not run. Once the emulator is fully launched, check the Enable ADB Integration option and re-run the app. Now the app will be launched in the already running emulator.



Solution.2
You might have forwarding enabled on adb. You can try this: Quit Android studio and launch terminal. Run these commands:

adb kill-server
adb forward --remove-all
adb start-server
Now you can launch Android Studio and try again.



I hope one of the solution work for you.
Thank You!!!
 
Share this answer
 
Comments
Cao Khả Tú 22-May-17 11:15am    
I set the Graphics option on the Android Virtual Device to Software instead of Automatic or Hardware. And it worked. Thank you Ashish Lovez!
Cao Khả Tú 24-May-17 9:02am    
Sorry Ashish Lovez! I can not run MyHelloWorldAndoid because The mistake <Error while waiting for device: Timed out after 300seconds waiting for emulator to come online.
> I just receive android black screen. I can not receive home screen of telephone. Can you help me. I tried your two solution.
Command line: adb kill-server -->server not running
Command line: adb forward --remove-all --> deamon not running. starting it now at tcp:5037
deamon started successfully
Command line: adb start-server
Look like it exactly duplicate from My Android AVD Shut Down Automatically - Android | Dream.In.Code[^]

Solution

Unchecking the Enable ADB Integration option and checking it back.
If this doesn't work, try another alternatives from android - Error while waiting for device: Time out after 300seconds waiting for emulator to come online - Stack Overflow[^]

Hope this help.
 
Share this answer
 
I've installed and update of SDK - Android Emulator and it worked! hope solve it for you too
 
Share this answer
 
Comments
Richard MacCutchan 13-Oct-20 9:23am    
I think it is a reasonable guess that he either fixed it three years ago, or gave up.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900