Reputation: 8918
I'm using Android Studio version 3.2 and I have 12GB ram and double graphic cards(NVIDIA and INTEL).
I already installed HAXM and also forces emulator.exe and qemu-system-x86_64.exe to work with NVIDIA.
But still the emulator is extremely slow
Upvotes: 35
Views: 57076
Reputation: 11
Go to Device Manager in Android Studio, click the three dots next to the device and click wipe data.
It resolved my issue atleast.
Upvotes: 0
Reputation: 41
Installing x86 Images APIs is what worked for me, as they're a lot lighter than the x86_64 options.
Upvotes: 0
Reputation: 141
My Android Studio Emulator was very slow, but the PC was not the problem, I have 16 RAM, 512 SSD, Intel i7 11 gen.
My problem was the amount of RAM for the emulator that was given. The amount of given RAM was 1.5 GB RAM, so I changed that to 3 GB RAM and now the emulator is working smoothly, without lagging or getting stuck.
To change the amount of given RAM for your emulator follow these steps:
Projects
and then click on More Actions
then select the Virtual Device Manager
from the dropdown menuA new window will pop up and then click the edit icon on your emulator
After that another window will pop up. You will need to click on the button where it says Show Advanced Settings
, after that the window will expand and you should scroll down and see RAM input where you can set the amount of RAM for your emulator
Finish
and you are doneUpvotes: 2
Reputation: 109
I use this configuration on MAC
Upvotes: 2
Reputation: 7107
My Nexus 5X API 24 and 25 Emulators works well but Nexus 5X API 26 and above are very slow, I check memory and CPU costs in Android Profiler it shows much higher than others, even simulators have the same density.
I think currently we often choose latest Emulators (from API 26 - Android 8.0 and above) ONLY for testing code that relates to OS features changes, for stable and performance testing, we should choose Emulators equal or below API 25 - Android 7.1.
I reported this problem to Google, hope they will make some enhancements soon.
Upvotes: 36
Reputation: 795
Try this:
Go to the emulator settings and try to select different values for OpenGL ES Renderer:
Upvotes: 40
Reputation: 468
The Android Emulator is very slow. The main reason is because it is emulating the ARM CPU & GPU, unlike the iOS Simulator, which runs x86 code instead of the ARM code that runs on the actual hardware.
And one more, Why should you not go for Genymotion. I have used as as option for Android Emulator. It is better than Android Emulator.
If you really want to speed up the process, I would like to help you with this.
Follow these steps, ,may be your problem come to an end.
Use actual hardware devices
Don’t Run the Emulator in a Virtual Machine
Upvotes: 7