在android studio中创建了nexus 5模拟器,它只显示黑屏?

时间:2015-07-21 09:12:35

标签: android-studio

我在android studio中创建了nexus 5和nexus 7模拟器。我逐个启动这两个模拟器。 Nexus 7模拟器工作正常,但在nexus 5只包含黑屏我等了1个多小时。问题是什么。

它显示以下消息:

        emulator: device fd:628
        HAX 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 = 1536 MB
        emulator: HAXM max RAM size = 512 MB
        emulator: You might want to adjust your AVD RAM size and/or HAXM configuration to run in fast virt mode.

nexus 5模拟器的详细信息

名称:Nexus_5_API_21 CPU / ABI:Intel Atom(x86)路径:C:\ xxx.android \ avd \ Nexus_5_API_21.avd 目标:Android 5.0.1(API级别21) 皮肤:nexus_5 SD卡:\ Nexus_5_API_21.avd \ sdcard.img 快照:是hw.dPad:没有runtime.network.speed:完全hw.accelerometer:是hw.device.name:Nexus 5 vm.heapSize:64 skin.dynamic:是hw.device.manufacturer:Google hw.gps:是hw.audioInput:yes tag.id:default hw.camera.back:none hw.mainKeys:no AvdId:Nexus_5_API_21 hw.camera.front:none hw.lcd.density:480 runtime.scalefactor:auto avd.ini.displayname: Nexus 5 API 21 snapshot.present:yes hw.device.hash2:MD5:2fa0e16c8cceb7d385183284107c0c88 hw.ramSize:1536 hw.trackBall:no hw.battery:yes hw.sdCard:yes tag.display:default runtime.network.latency:none hw.keyboard:yes hw.sensors.proximity:yes disk.dataPartition.size:200M hw.sensors.orientation:yes avd.ini.encoding:UTF-8 hw.gpu.enabled:no

1 个答案:

答案 0 :(得分:0)

该错误表明HAXM支持的最大RAM大小为512 MB。尝试将仿真器RAM的大小降低到512 MB。这解决了我的问题。