contador javascript Saltar al contenido
Contact : alejandrasalcedo0288@gmail.com

Accelerate the Android Studio emulator on Linux

emulator-android "width =" 700 "height =" 500 "class =" aligncenter size-full wp-image-25149 "srcset =" https://www.funzen.net/wp-content/uploads/2019/10/Accelerate-the-Android-Studio-emulator-on-Linux.jpg 700w , https://rootear.com/files/2015/01/emulador-android-400x285.jpg 400w, https://rootear.com/files/2015/01/emulador-android-220x157.jpg 220w "sizes =" (max-width: 700px) 100vw, 700px "/></p>
<p><strong>If you usually use Android programs, it is almost certain that you are using the Android emulator that has integrated Eclipse Android or the new Android Studio</strong>You will also have noticed that the performance of this emulator is not as good as it should be. For all those who are already desperate with the performance of the emulator and also use Linux, we bring you the solution.</p>
<p><strong>The only requirement to accelerate our emulator is to have an Intel processor in our PC compatible with Intel VT</strong>, an innovative virtualization technology that will allow us to significantly improve the performance of our virtual machines, in this case the Android emulator.</p><div class=

How to know if we are compatible

The technology we are going to use is called KVM and the first thing that we have to know is if our processor supports hardware virtualization, we will use this command:

egrep -c " (vmx|svm)"="" proc="" cpuinfo="" 


If this command returns us a 0 in the window mean that our CPU does not support virtualization. The next step in case of having support is to install CPU Checker:

sudo apt-get intall cpu-checker

Now we must know if our CPU supports KVM, the system we will use to accelerate the emulator, we use this command:

kvm-ok

If we see something other than this:
?INFO: Your CPU supports KVM extensions
    INFO: / dev / kvm exists
    KVM acceleration can be used ?

Meaning that we have to activate Intel VT technology in the BIOS.

Installing KVM

We are going to install a few packages in our system:

sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils

In section Postfix Configuration debers select No configuration To avoid conflict. Now We will add our user to the KVM group and libvirtd:

sudo adduser  kvm
sudo adduser  libvirtd

You must log out of your account and log back in for the changes in the groups to take effect. Only members of the aforementioned groups can use KVM technology for virtual machines. Finally we will verify the installation with this command:

sudo virsh -c qemu:///system list

Than we must return, if everything is correct:

Id Name                            State
--------------------------------------------

Otherwise, we must redo the entire process of installing and adding users to groups.


In this way, without many complications and with a couple of commands we will have a much more fluid and optimized emulator, we can continue programming and working without fear of having to wait for the emulator to start every time we want to test our application.

. Android (t) Eclipse (t) Android Emulator (t) Intel (t) KVM