Why emulator is very slow in Android Studio?

后端 未结 20 2924
小鲜肉
小鲜肉 2020-11-29 03:01

I just setup Android Studio on my PC, which is new launch to develop Android application.

My problem is that, when I try to run my small app in emulator, it take to

20条回答
  •  悲哀的现实
    2020-11-29 03:08

    For those who enabled HAXM and the emulator still works slow here is what you should do:

    1. If Avast antivirus is running on your computer, it is most likely the culprit.

    as per HAXM Release_Notes.txt (Version 7.5.2):

    • On Windows, Avast Antivirus may interfere with HAXM and cause Android Emulator or QEMU to run very slowly. A workaround is to uncheck "Use nested virtualization where available" in Avast Settings > Troubleshooting.

    So open your Avast dashboard > Menu > Settings > Troubleshooting and disable "Enable hardware-assisted virtualization"

    1. Give a higher priority to your emulator's process in the Task Manager:

      Locate your emulator's process in the Task Manager > Details tab:

      Right-click on it and Set Priority -> Above normal

    Sorry that the screenshot is not in English but you got the point, right? That helped me significantly! I hope it will help you as well.

    Also, one thing as per the Release Notes:

    • On Windows 8, 8.1 and 10, it is recommended to disable Hyper-V from Windows Features in order for the HAXM driver to properly function.

    In my case, I didn't have any "Hyper-V" feature on my Windows 8.1 but you probably should try it, just in case. To locate and disable that feature see this article: https://support.bluestacks.com/hc/en-us/articles/115004254383-How-do-I-disable-Hyper-V-on-Windows-

提交回复
热议问题