Ayoub k
Ayoub k

Reputation: 8918

Why Android Studio emulator is extremely slow?

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

Answers (7)

The Programmer
The Programmer

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

Vinicius Bernardo
Vinicius Bernardo

Reputation: 41

Installing x86 Images APIs is what worked for me, as they're a lot lighter than the x86_64 options.

API Images

Upvotes: 0

Mace
Mace

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:

  1. Open Android Studio
  2. Select Projects and then click on More Actions then select the Virtual Device Manager from the dropdown menu

enter image description here

  1. A new window will pop up and then click the edit icon on your emulator enter image description here

  2. 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

enter image description here

  1. Click Finish and you are done

Upvotes: 2

Geral Torres
Geral Torres

Reputation: 109

I use this configuration on MAC

Configuration Emulator

  • GPU Mode: Host
  • Ram: 1024
  • SDCard Size: 10M

Upvotes: 2

Phong Nguyen
Phong Nguyen

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

Enough Technology
Enough Technology

Reputation: 795

Try this:

Go to the emulator settings and try to select different values for OpenGL ES Renderer:

enter image description here

Upvotes: 40

Haseeb Mirza
Haseeb Mirza

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

Related Questions