重启/关闭 Android 模拟器
我在 Android 模拟器上安装了新字体。说明说我必须重新启动我的设备。我尝试使用“关闭电源”按钮,但它只显示“正在关闭”并且不执行任何操作。即使当我进入 adb shell 并运行“reboot”时,它也会挂起。
有什么想法如何重新启动模拟器以便出现新设置吗?
谢谢。
I installed new fonts on my Android emulator. The instructions say I have to reboot my device. I tried using the "Power Off" button but it just displays "Shutting Down" and does nothing. Even when I go to the adb shell and run "reboot" it hangs.
Any ideas how to restart the emulator so that the new settings appear?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
这是重新启动/重新启动模拟器的快速方法:
现在模拟器将重新启动/重新启动并且电源将打开。
Here is a quick way to restart/ reboot emulator:
Now emulator will restart/reboot and power will ON.
基本上你不应该关闭它......只需关闭窗口即可。
这是文档
参考:
http:// /developer.android.com/tools/devices/emulator.html#starting
Basically you are not supposed to shut it down... Just close the window.
This is what's written in the documentation
Reference:
http://developer.android.com/tools/devices/emulator.html#starting
当启用模拟器快照时有时会发生这种情况(我认为您的问题与字体安装无关)。
尝试使用此命令来启动没有快照的虚拟设备:
It occurs sometimes when emulator snapshots are enabled (I think your problem is not related to fonts installation).
Try this command to start your virtual device without snapshot:
嗯...另一种方法是清除当前模拟器并从初始状态重新启动..
Hmmm... another way is wiping out current emulator and re-start from initial state..
在“Android sdk and avd manager”中选择模拟器,编辑它,去掉“snapshot”的勾。然后每次运行模拟器都会重新启动。
Choose the emulator in "Android sdk and avd manager", edit it, and remove the tick from "snapshot". Then the emulator will restart every time you run it.
在 AVD Manager 中,您可以单击要重新启动的设备的“操作”列下的“立即冷启动”。
In the AVD Manager, you can click on "Cold Boot Now" under "Actions" column of the device you want to reboot.
也许可以在雄心勃勃地尝试在多个模拟器上运行 Android 应用程序 - 无法阻止模拟器
maybe see my answer at Ambitious attempt at running android app on multiple emulators - can't stop emulators
您只需关闭模拟器窗口即可。
You can just close the emulator window.