Android AVD 加载时间和重新启动
我是 Android 开发新手,对 AVD 有一些棘手的问题。
谷歌模拟器是最好用的吗?加载需要永远和一天的时间。
另外,每次我对代码进行更改并在 Eclipse 中点击“运行”时,它都会生成一个新的模拟器。有没有办法让 AVD 当前运行来重新加载应用程序?
预先感谢您的帮助!
更新:
- 我完全放弃了 SDK 和 AVD 并重新安装。
- 禁用启动动画对启动时间产生了巨大的影响。我必须编辑运行配置才能找到并启用此选项。
- 我还必须编辑运行配置以在启动时专门启动我的应用程序,否则它默认为我必须解锁、导航到应用程序并单击启动的主页。那里节省大量时间。
- 启用快照只会导致模拟器崩溃。必须手动删除 AVD(通过终端“android delete avd -n {name}”并重新创建它(Eclipse 不允许我删除它),否则它不会再次启动。
- 我现在可以让模拟器在后台运行,无需重新启动模拟器即可重新安装应用程序,
HelloWorld 确实应该被称为 HelloBaldness。 !
感谢所有回复的人
I'm brand new to Android dev and have some n00b questions about AVD.
Is Google's emulator the best to use? It takes forever and a day to load.
Also, every time I make changes to the code and hit "run" in Eclipse it spawns off a new emulator. Is there a way to get the AVD currently running to reload the app instead?
Thanks in advance for your help!
UPDATE:
- I completely blew away the SDK and AVDs and re-installed.
- Disabling the boot animation made a HUGE difference in start-up time. I had to edit the run configuration to find and enable this option.
- I had to also edit the run config to specifically launch my app on start, otherwise it defaults to home where I'd have to unlock, navigate to apps, and click to start. Big time saver there.
- Enabling snapshots only caused the emulator to crash. Had to manually delete the AVD (via terminal 'android delete avd -n {name}' and recreate it (Eclipse wouldn't allow me to delete it), otherwise it wouldn't start again.
- I can now leave the emulator running in the background. Clicking the run button now re-installs the app without rebooting the emulator. Woot!
The HelloWorld tut should really be called HelloBaldness. Pretty much blew the entire day wrestling with these ridiculously frustrating issues.
Thanks to all who responded!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
评论中的链接是一个好的开始,但答案太多,可能很难找到最佳选择。到目前为止,我所经历的最大的启动时间减少是通过禁用启动动画。执行以下操作:
可能会有其他调整可以给你带来稍微更好的性能,但那是迄今为止最好的。
不幸的是,我不知道为什么你每次都会得到一个新的模拟器。我曾经发生过这种情况,如果没记错的话,在调试透视图的输出窗口中有一些错误文本解释了问题。
The link in the comment is a good start, but there are so many answers it may be hard to find the best options. By far the biggest startup time decrease I've had is by disabling the boot animation. Do the following:
There may be other tweaks that give you slightly better performance, but that one is by far the best.
Unfortunately, I don't know exactly why you get a new emulator every time. I've had this happen once and if recall correctly there was some error text that explained the problem in the output window in the Debug Perspective.
加载模拟器就像启动操作系统或启动Android手机一样。
当您运行 Android 应用程序时,只需检查终端中的“adb devices”命令即可确认模拟器是否仍在运行。否则只需执行“adb Kill-server”和“adb start-server”而不关闭模拟器。它将减少模拟器的启动时间。现在 RunAs.. Android 应用程序。
Loading the emulator is like booting an Os or booting an android mobile phone.
when ever you are running the android application, just check the 'adb devices' command in the terminal to confirm that the emulator is still running or not. else just do 'adb kill-server' and 'adb start-server' without closing the emulator. it will reduce your booting time of the emulator. Now RunAs.. Android Application.