简体   繁体   English

在android studio中,AVD模拟器会打开,但不会运行。 请查看详细信息

[英]In android studio, the AVD emulator opens but doesn't run. Please see the details

I have installed Intel haxm properly, hardware virtualisation is enabled. 我已经正确安装了英特尔haxm,并且启用了硬件虚拟化。 The window for AVD opens and a phone is displayed on screen, but nothing else happens (the phone doesn't run). 将打开AVD窗口,并在屏幕上显示电话,但没有其他反应(电话未运行)。 These are the messages that come up on screen: 这些是出现在屏幕上的消息:

emulator: The memory needed by this AVD exceeds the max specified in your HAXM configuration. 仿真器:此AVD所需的内存超过了HAXM配置中指定的最大值。 emulator: AVD RAM size = 1536 MB emulator: HAXM max RAM size = 1024 MB emulator: You might want to adjust your AVD RAM size and/or HAXM configuration to run in fast virt mode. 模拟器:AVD RAM大小= 1536 MB模拟器:HAXM最大RAM大小= 1024 MB模拟器:您可能需要调整AVD RAM大小和/或HAXM配置以在快速virt模式下运行。 creating window 43 59 329 583 emulator: emulator window was out of view and was recentered emulator: UpdateChecker: skipped version check 正在创建窗口43 59 329 583仿真器:仿真器窗口不可见,并且已被重新放置仿真器:UpdateChecker:跳过了版本检查

What should I do? 我该怎么办?

You need to set the amount of RAM that is being used by your AVD to equal or lower than what is set in your HAXM configuration. 您需要将AVD使用的RAM数量设置为等于或小于HAXM配置中设置的数量。 Your AVD is at 1536 and HAXM is 1024. Set your AVD to 768, that should work. 您的AVD为1536,HAXM为1024。将您的AVD设置为768,应该可以。

My AVD was at 1536 MB and HAXM was at 1 GB. 我的AVD为1536 MB,而HAXM为1 GB。 I changed the AVD to 1 GB. 我将AVD更改为1 GB。 It failed with the above messages. 上面的消息失败。 I looked at the AVD and it had changed back to 1536 MB. 我看着AVD,它已变回1536 MB。 I changed the AVD to 768 MB. 我将AVD更改为768 MB。 It worked. 有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM