Error Message: emulator-arm.exe has stopped working

前端 未结 17 596
余生分开走
余生分开走 2020-12-08 14:39

I have been having issues running my first android app. Yesterday, i came close to running it but my happiness was dashed when i encountered this error:

emul         


        
相关标签:
17条回答
  • 2020-12-08 15:31

    After many attempts to fix, I found the following most helpful: Android: failed to allocate memory Running the emulator with 512mb of ram or less seems to be the only solution so far for me. Thanks

    0 讨论(0)
  • 2020-12-08 15:31

    Here's how to fix it and keep your desired amount of RAM:

    1. Go into the AVD folder (example: C:\Users\username\.android\avd\phone.avd)
    2. Open the "config.ini" file in Wordpad.
    3. Modify the 'partition' and 'ram' lines to end in "MB" (See below for the proper syntax changes)

    ORIGINAL: disk.dataPartition.size=512M

    MODIFIED: disk.dataPartition.size=512MB

    ORIGINAL: hw.ramSize=1024

    MODIFIED: hw.ramSize=1024MB

    Save the file, and then run the emulator again (e.g. "emulator.exe -avd phone"). You must repeat this process for each of your AVDs.

    0 讨论(0)
  • 2020-12-08 15:31

    Also worth checking that HAXM is installed/enabled (this fixed issue for me, without it got same error as you were reporting and it slowed my Mac to a crawl).

    0 讨论(0)
  • 2020-12-08 15:32

    My case was that the skin setting somehow had been changed from WVGA800 to WVGA854 in AVD. After I switch it back, the emulator works.

    0 讨论(0)
  • 2020-12-08 15:33

    In my case, I had to set memory RAM from 1907 (default) to 512 to get it working

    0 讨论(0)
提交回复
热议问题