Android 重启/关闭安卓模拟器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1960979/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Reboot/Power Off Android Emulator
提问by njdeveloper
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.
我在我的 Android 模拟器上安装了新字体。说明说我必须重新启动我的设备。我尝试使用“关机”按钮,但它只显示“正在关闭”并且什么也不做。即使我转到 adb shell 并运行“reboot”,它也会挂起。
Any ideas how to restart the emulator so that the new settings appear?
任何想法如何重新启动模拟器以便出现新设置?
Thanks.
谢谢。
回答by itsaboutcode
Basically you are not supposed to shut it down... Just close the window.
基本上你不应该关闭它......只需关闭窗口。
This is what's written in the documentation
这是文档中写的
To stop an emulator instance, just close the emulator's window.
Reference:
参考:
http://developer.android.com/tools/devices/emulator.html#starting
http://developer.android.com/tools/devices/emulator.html#starting
回答by user770953
Hmmm... another way is wiping out current emulator and re-start from initial state..
嗯......另一种方法是清除当前的模拟器并从初始状态重新启动..
- just close your emulator window
- launch AVD Manager from eclipse
- press Start button
- check "Wipe user data"
- click "Launch" and you will get clean and initial state of emulator
- 只需关闭您的模拟器窗口
- 从 Eclipse 启动 AVD Manager
- 按开始按钮
- 勾选“擦除用户数据”
- 单击“启动”,您将获得模拟器的干净和初始状态
回答by caligari
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:
尝试使用此命令在没有快照的情况下启动您的虚拟设备:
emulator -no-snapshot-load -avd YOUR_AVD
回答by Elvis
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.
在“Android sdk and avd manager”中选择模拟器,编辑,去掉“snapshot”的勾。然后模拟器会在你每次运行时重新启动。
回答by Garg's
Here is a quick way to restart/ reboot emulator:
这是重新启动/重新启动模拟器的快速方法:
- Go to "Android Virtual Device Manager"
- Click on the dropdown menu in "Action" column
- Select "Cold Boot Now" option in menu
- 转到“Android 虚拟设备管理器”
- 单击“操作”列中的下拉菜单
- 在菜单中选择“Cold Boot Now”选项
Now emulator will restart/reboot and power will ON.
现在模拟器将重新启动/重新启动并且电源将打开。
回答by Wamiq
In the AVD Manager, you can click on "Cold Boot Now" under "Actions" column of the device you want to reboot.
在 AVD 管理器中,您可以单击要重新启动的设备的“操作”列下的“立即冷启动”。
回答by tverrbjelke
maybe see my answer at Ambitious attempt at running android app on multiple emulators - can't stop emulators
也许可以看到我的回答在多个模拟器上运行 android 应用程序的雄心勃勃的尝试 - 不能停止模拟器
回答by zpon
Have you tried just closing the emulator window?
您是否尝试过关闭模拟器窗口?