Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio emulator extremely slow

I have Android Studio updated at latest release (today is April 22nd, 2017) and Haxm installed, but the Android emulator is completely useless. It is extremely slow.

I don't know why, a few days ago it was running fast and smooth. Then I restarted my computer and it became extremely slow. It must be some reason for this.

Please, do not answer to install Genymotion. Genymotion doesn't allow me to emulate the phone in the free version.

As I said, intel haxm is installed.

The message "Process system isn't responding" is displaying all the time.


UPDATE April 25th, 2017: My Android Studio installed a new update (I cannot specify what got updated) and now the emulator suddenly runs fast again (the same AVDs, I haven't created new ones) But this same behavior has happened before. I am sure that in a few days/weeks it will suddenly run extremely slow again, and it will be this way for a few days/weeks, after another update will run smooth again. This has been happening for me during months. I will post here when that happens.


UPDATE April 30th, 2017: My Android Studio installed a new update (Google Repository) and now the emulator suddenly is going extremely slow (the same AVDs, I haven't created new ones). I am sure that in a few days/weeks it will suddenly run fast again.

like image 475
Ton Avatar asked Apr 22 '17 11:04

Ton


3 Answers

In my case the problem was (and still is) the emulated graphics settings (see AVD / Virtual Device Configuration), probably indicating a problem with video card and/or video driver. I had very random speed using Automatic or Hardware - GLES 2.0 - sometimes it's silky smooth, sometimes it's unacceptable. (On a side note: I find these issues only on Android 6.0+ emulator, for example Android 4.1 is always very fast).

After switching to Software - GLES 2.0 performance is now acceptable: not very fast, but usable, and also the color gradients are not as nice (it's software rendering after all). I hope it works for you too.

like image 135
Attila Mate Avatar answered Oct 05 '22 13:10

Attila Mate


Finally I've found a solution (at least to me). I've followed this steps (I don't know if all of them are necessary): 1) Manually updated HAXM to last version from Intel website 2) As my laptop has 2 integrated GPU's (Intel and Nvidia, where Intel is the default and weaker one), in Nvidia GeForce control panel, I've forced both emulator.exe and qemu-system-i386.exe to use Nvidia card instead Intel. 3) I've created new AVD's with x86 image and setup the GPU to use "Hardware - GLES 2.0" profile.

Now the emulator is incredibly fast. It seems better than never.

like image 33
Márcio Oliveira Avatar answered Oct 05 '22 12:10

Márcio Oliveira


I've used the solution of Márcio Oliveira, but in only one step: on my laptop with 2 integrated GPUs from Nvidia Control Panel -> Managed 3D Settings I forced the qemu-system-i386 application (located in \AppData\Local\Android\sdk\emulator\qemu\windows-x86_64) to run on the Nvidia processor, this resolved my problem.

like image 36
Andrei Modog Avatar answered Oct 05 '22 11:10

Andrei Modog