Why emulator is very slow in Android Studio?

后端 未结 20 2715
小鲜肉
小鲜肉 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:21

    Check this list:

    1. install Intel HAXM
    2. just use x86 AVD
    3. use small size screen
    0 讨论(0)
  • 2020-11-29 03:25

    Aside from what everyone has already said about HAXM and other configuration settings as solutions for this problem, my solution had nothing to do with software configuration or processor limitations.

    I setup Android studio on an older HDD and I had Visual Studio running an android emulator on an SSD. My bottleneck was the old HDD - the SSD I had resulted in more speed.

    The solution - albeit not the best for you - is to look in installing an SSD. This is not a very feasible solution in 90% of the cases but for me the root cause was linked to my hardware - not my software config.

    Hope this helps another person facing a similar problem!

    0 讨论(0)
  • 2020-11-29 03:27

    I tend to load AVD through snapshot which can be setup in the AVD Manager > Choose AVD > Details... > Checking Emulator Options: Snapshot, and then to run the AVD, Select AVD in AVD Manager > Start... > Select Save To Snapshot and Launch from Snapshot. The first time, ensure that save to snapshot is chosen, as no snapshot exists to launch. The next time onwards choose launch from snapshot.

    Slightly apprehensive to suggest this as well, but I have noticed a peculiar behavior when loading and running AVD. When I have the laptop battery being charged on my Lenovo laptop - 64 bit Windows 7, 4GB, 2.5GHz machine, the emulator loads and runs slightly faster and also lags less. I wonder if it is the configuration on my laptop to slow down high computational processes. Would be nice to know if someone else has noticed this behavior? Unplug the charger when the AVD is loaded and see if the AVD slows down.

    0 讨论(0)
  • 2020-11-29 03:27

    In my case, the problem was coming from the execution of WinSAT.exe (located in System32 folder). I disabled it and issue solved.

    To turn it off:

    1. Start > Task Scheduler (taskschd.msc)
    2. Find Task Scheduler (Local)
    3. Task Scheduler Library
    4. Microsoft > Windows > Maintenance
    5. Right click WinSAT
    6. Select disable.

    The Reference

    Also, suppress it from Task Manager or simply reboot your machine.


    Point: In this situation (when the problem comes from WinSAT) emulator works (with poor performance) when you use Software - GLES 2.0 and works with very very poor performance when you use Hardware - GLES 2.0.

    0 讨论(0)
  • 2020-11-29 03:28

    Try using another android virtual device. You can create one by adding a new device by going to the AVD Manager. Select the screen size 3'2 and API-10 (gingerbread).

    This worked for me, and it is super-fast now.

    P.S.- My laptop used to take forever to load the emulator, and It never got started due to insufficient memory(4.2). I used to get restart again and again. This solved my problem.

    0 讨论(0)
  • 2020-11-29 03:28

    This is probably because incomplete files in your sdk . Sometimes firewall of ur office or somewhere blocks it and hence error message comes saying peer not authenticated I was facing the same problem but after downloading all the files by getting firewall access My emulator is working properly and much faster than before

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