如何重新启动android模拟器? [英] How do I restart an android emulator?
问题描述
我基本上是想这样做:
更改Android模拟器
I'm basically trying to do this: Changing the Android emulator locale automatically
一切正常,直到开始为止。模拟器开始启动,但始终保持在闪闪发光的 ANDROID屏幕上加载。我必须缺少某些东西...如何从ADB重新启动模拟器?
Everything works up until 'start'. the emulator starts to boot but keeps loading at the shimmering 'ANDROID' screen forever. I must be missing something... How can I restart the emulator from ADB?
我应该更具体一些。
我正在尝试使用adb从命令行执行此操作。我可以使用adb来设置属性,并且可以停止模拟器。当我尝试在adb shell中执行启动操作时,仿真器确实开始启动,但从没有返回锁定屏幕。
I am trying to do this from the command line using adb. I can use adb to setprop and I can stop the emulator. When I try doing 'start' in the adb shell, the emulator does begin to boot, but it never returns to the lock screen.
推荐答案
我很确定这会起作用:
-
清除/擦除AVD为默认值或创建一个新的AVD。
Clear/Wipe the AVD to defaults or create a new one.
emulator -avd my_avd -prop persist.sys.language=en -prop persist.sys.country=GB
根据需要进行更改。这样,您就不会弄乱可能导致挂起/崩溃的系统映像。而且您可以轻松地在各种语言环境下将其设置为启动状态。
change as needed. That way you are not messing with the system image which can cause hangs/crashes. And you can easily set it on boot for a variety of Locales.
这篇关于如何重新启动android模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!