Android Studio: The emulator keeps crashing after sometime

前端 未结 6 535
没有蜡笔的小新
没有蜡笔的小新 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:19

    I might have an Idea what your problem is:

    Restart the adb Server, you can do so by using the command Prompt in the following way:

    First go to C/users/(YOUR USERNAME)/AppData/Local/Android/Sdk/platform-tools with the cd command. Then just type adb kill-server, and adb start-server, so like this;

    cd C/users/(YOUR USERNAME)/AppData/Local/Android/Sdk/platform-tools
    adb kill-server
    adb start-server
    

    If that doesent work try to wipe and cold boot described in this question.

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-01-18 05:25

    It sounds like the emulator may have not installed correctly. Check these steps:

    1. Ensure that you have installed Hyper-V . Documentation for running emulator on AMD

    2. Then try this step to force a cold boot: Android Studio Emulator and "Process finished with exit code -1073741511 (0xC0000139)"

    If Its crashes again, then create a new emulator. You might also try and download a new image just to make sure that the one you installed is not corrupt.

    0 讨论(0)
  • 2021-01-18 05:35

    You said you're using Windows 10? Error code 0xC0000409 is caused by a stack buffer overflow. It seems to have popped up a couple places all related by windows systems (might be totally irrespective of the android emulator). If this is the case I found a couple threads that might help solve your problem.

    http://www.cplusplus.com/forum/windows/39061/

    https://answers.microsoft.com/en-us/windows/forum/all/werfaultexe-the-exception-unknown-software/627da5c0-004a-e011-8dfc-68b599b31bf5?auth=1

    http://windowsbulletin.com/solved-exception-code-0xc0000409-error/

    https://www.tenforums.com/tutorials/16397-repair-install-windows-10-place-upgrade.html

    0 讨论(0)
  • 2021-01-18 05:39

    It seems a buggy graphic card driver can cause a similar problem. I am not sure if this is generated your problem here or not, but it is worth to say; If you have an NVIDIA graphic card with the driver version of 378.49 (there may be other versions too!), you may experience this error due to some incompatibility with java.
    Please update your graphic card driver or rollback it to version an older stable version and try again!. And read here for more information.

    0 讨论(0)
  • 2021-01-18 05:40

    Try this :

    Go to Tools ==> SDK Menager ==>Android SDK

    (Appearance&Behavior=>System settings=>Android SDK)==>SDK Tools==>Intel x86 Emulator Accelerator(install this).

    It will solve your problem.I hope it helps.

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