Android Studio在打开Android模拟器时显示错误

时间:2017-02-08 21:27:08

标签: android

我在Android Emulator上运行代码时收到错误。模拟器正在打开,但它没有显示任何内容,android studio显示此错误(如下所示)。请帮忙。

错误:

C:\Android\sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5_API_23
emulator: WARNING: Crash service did not start
emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored.
Creating filesystem with parameters:
    Size: 69206016
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 4224
    Inode size: 256
    Journal blocks: 1024
    Label: 
    Blocks: 16896
    Block groups: 1
    Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
emulator: device fd:996
HAXM is not working and emulator runs in emulation mode
emulator: HAXM does not have enough memory remaining to load this AVD.
emulator: AVD      RAM size = 1536 MB
emulator: HAXM max RAM size = 1024 MB (for all running AVDs)
emulator: Try creating an AVD that requires less RAM or re-running the HAXM installer to set a higher memory limit. The HAXM installer may be found at C:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe.
emulator: Failed to get Hax capability:6
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-5554

仿真器 enter image description here

1 个答案:

答案 0 :(得分:1)

  

模拟器:HAXM没有足够的内存来加载此AVD。

     

模拟器: AVD RAM大小 = 1536 MB模拟器: HAXM最大RAM大小 =   1024 MB(适用于所有正在运行的AVD)

您可能需要设置AVD RAM size <= 1024