Android工作室:AVD ram尺寸不变?

时间:2015-10-02 05:37:39

标签: android android-emulator

我正在使用android studio 1.3.2。 当我运行应用程序时,发生以下事件日志:

f:\Users\User\AppData\Local\Android\sdk\tools\emulator.exe -avd Nexus_One_API_23 -netspeed full -netdelay none

emulator: WARNING: Increasing RAM size to 1GB

emulator: device fd:728

HAXM is not working and emulator runs in emulation mode

emulator: The memory needed by this AVD exceeds the max specified in your HAXM configuration.

emulator: AVD      RAM size = 1024 MB

emulator: HAXM max RAM size = 768 MB

emulator: You might want to adjust your AVD RAM size and/or HAXM configuration to run in fast virt mode.

creating window 77 81 298 496

emulator: emulator window was out of view and was recentered

emulator: UpdateChecker: skipped version check.

我已经尝试过avd nexus的公羊尺寸一到512 mb和768 mb .......在上述两个事件日志中都会发生。

如何解决?

1 个答案:

答案 0 :(得分:0)

您可以将Intel x86 Atom System Image降级为API-19而不是API 21/22/23,以便减少RAM空间。您可以在config.ini文件中找到配置,并通过hw.ramSize = 512将RAM大小设置为512。

我曾尝试过使用API​​-21/22/23的Image。即使我在config.ini中设置了ramSize = 256,或者在命令emulator -memory 256 -avd [<avd_name>]之后添加了更改内存大小的选项,它仍显示:emulator: WARNING: Increasing RAM size to 1GB