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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 03:56:41  来源:igfitidea点击:

Reboot/Power Off Android Emulator

androidfontsandroid-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 并运行“rebo​​ot”,它也会挂起。

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..

嗯......另一种方法是清除当前的模拟器并从初始状态重新启动..

  1. just close your emulator window
  2. launch AVD Manager from eclipse
  3. press Start button
  4. check "Wipe user data"
  5. click "Launch" and you will get clean and initial state of emulator
  1. 只需关闭您的模拟器窗口
  2. 从 Eclipse 启动 AVD Manager
  3. 按开始按钮
  4. 勾选“擦除用户数据”
  5. 单击“启动”,您将获得模拟器的干净和初始状态

回答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:

这是重新启动/重新启动模拟器的快速方法:

  1. Go to "Android Virtual Device Manager"
  2. Click on the dropdown menu in "Action" column
  3. Select "Cold Boot Now" option in menu
  1. 转到“Android 虚拟设备管理器”
  2. 单击“操作”列中的下拉菜单
  3. 在菜单中选择“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 zpon

Have you tried just closing the emulator window?

您是否尝试过关闭模拟器窗口?