Android emulator hangs forever at boot time

前端 未结 6 2236
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-14 06:18

Emulator started, but not booting further \"android\" flashing text.

Started by

Android/Sdk/emulator/emulator @Nexus_5X_API_25 -verbose

6条回答
  •  执笔经年
    2021-02-14 06:37

    emulator: MemoryReport: Epoch: 140737476643856, Res/ResMax/Virt/VirtMax: 737525760 737525760 5164826624 5302894592
    

    Explanation:

    Epoch: 140737476643856 /* this millisecond values gives when you created this emulator*/

    Res/ResMax/Virt/VirtMax

    Res - Resource memory used by a process (booting process). Since your booting process is using your total RAM (emulator's RAM), it is being kind of hang.

    ResMax - Resource memory denotes the total actual RAM memory of your emulator.

    Virt - Virtual Memory used by a process. It is swap memory.

    VirtMax - The maximum Virtual Memory available in the emulator.

    /*Note: Since the booting process has not used your total virtual memory, so your emulator is still running. But since all the RAM is full, the processing is happening, but it can't go further. So, it keeps showing "Android" in the screen.

    I have these solutions based on order (the best is the top most).

    1) Please increase your RAM memory of your emulator. Note: you should have more RAM on your laptop. You have to check your host machine's RAM use as well.

    2) If your host machine (laptop) doesn't have more RAM, then you might want to find alternative emulator like GenyMotion, BlueStacks which takes less memory than Android Emulator.

    GenyMotion: https://www.genymotion.com/

    BlueStack: http://www.bluestacks.com/

    Here is the picture how you can increase your RAM size in your emulator.

    Open ADV > Edit > Show Advanced Settings > Below Screen appears > Increase RAM

    Note: VM Heap size has nothing to do with your problem. Each apps is a separate Dalvik Virtual Machine instance. VM heap gives how much RAM you can, at max, assign for each app.

    Note: This problem is not related to your Graphics. It is the boot-time hang problem. So, Emulated performance based on Software or Hardware shouldn't be the answer.

提交回复
热议问题