我的android模拟器(AVD)自动关闭 [英] My android emulator (AVD) shut down automatically

查看:447
本文介绍了我的android模拟器(AVD)自动关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Friend

这是我的第一个Android应用程序。那就是HelloWorld程序。我不知道为什么我的android虚拟设备AVD出现4s,然后它自动关闭。

这是错误信息:

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:

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

推荐答案

解决方案1 ​​

通过将Android虚拟设备上的图形选项设置为软件而不是自动硬件。一旦你这样做,模拟器设备启动很好,一切正常。



转到菜单 - >工具 - > Android并取消选中启用ADB集成运行选项应用程序。现在模拟器将启动,但应用程序将无法运行。完全启动模拟器后,请选中启用ADB集成选项并重新运行该应用程序。现在该应用程序将在已经运行的模拟器中启动。







Solution.2

您可能已在adb上启用转发功能。你可以尝试这个:退出Android工作室和发射终端。运行以下命令:



adb kill-server

adb forward --remove-all

adb start-server

现在您可以启动Android Studio并再试一次。







我希望其中一个解决方案适合您。

谢谢!!!
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!!!


我的Android AVD自动关闭 - Android | Dream.In.Code [ ^ ]



解决方案



取消选中启用ADB集成选项并将其检回。

如果不是工作,尝试 android - 等待设备时出错:等待模拟器上线300秒后超时 - 堆栈溢出 [ ^ ] br />


希望这个帮助。
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.


这篇关于我的android模拟器(AVD)自动关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆