Android Studio: The emulator keeps crashing after sometime

前端 未结 6 537
没有蜡笔的小新
没有蜡笔的小新 2021-01-18 04:38

Every time I run the emulator it runs normally at the beginning but after a couple of minutes it crashes and it\'s giving me this error:

emulator process fin         


        
6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-18 05:21

    Here are a few things you can try:

    1. Go to AVD manager and open settings for your virtual device. In the Emulated Performance section for graphics, change it from automatic to software.
    2. Have a look at here. There could be an incompatability with other software incompatibility with other software such as Docker, Oracle Virtual Box and other products that use VCPU.
    3. You could try a complete reinstall of Android Studio and make sure all updates are completed. There could be a bug in an older version of the emulator you are using that's fixed in a more recent release.

    Edit

    A couple more things you could try:

    1. Open Android Virtual Device Manager, then click on options for virtual device, then wipe data, then cold boot.
    2. Go to C:/users/(username)/AppData/Local/Android/Sdk/platform-tools in a terminal, then type adb kill-server, then adb start-server.

    Edit

    You could also try checking for memory leaks https://developer.android.com/studio/profile/memory-profiler and you could try increase the amount of RAM available for the emulator.

    Go to Tools->Android->AVD Manager, then edit your AVD, then in the pop-up window click Show Advanced Settings, then finally increase the amount of RAM.

    Edit

    IT could be an issue with libGL or libstdc++. See here

提交回复
热议问题