Skip to content Skip to sidebar Skip to footer

Android Emulator Running Extremly Slow On Ubuntu 17.04 Compared To Windows 10

I have tried installing kvm from this link: https://help.ubuntu.com/community/KVM/Installation But even after trying this the emulator is slow when running in Software GLES 2.0 mod

Solution 1:

So, the problem is that Android SDK cannot find the OpenGL config and libs. Google distributes OpenGL libraries with the SDK but in Ubuntu that config is broken because C++ library could't be found, so the best solution that I found is to point a simbolic link to the system libraries that you already have on Ubuntu. The previous test that I made you to execute forces that situation from command line, but with the next steps you can have a more permanent and confortable solution, allowing you to fire any Hardware Accelerated emulator directly from AVD UI.

First of all, your system libs are on this Ubuntu path:

/usr/lib/x86_64-linux-gnu/

If there's no libstdc++.so.6file present inside /usr/lib/x86_64-linux-gnu/ , please install it with:

sudo apt install libstdc++6

In your situation is pretty obvious that you already have the correct libs installed or the emulators will not start neither from command line, but I leave the previous step for people who don't have the correct lib installed on their systems.

So, now we need to tell the Android SDK that we need to use the system libs. For that just do the following:

If there is a libstdc++6 file inside ~/yoursdkpath/emulator/lib64/libstdc++/ do mv libstdc++6 libstdc++6.bak to backup it.

Then:

ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6  ~/yoursdkpath/emulator/lib64/libstdc++/libstdc++.so.6

And that's it, go to AVD and start any emulator with Hardware GLES 2.0 config selected and it will work.

IMPORTANT: From time to time Google will update your emulators. If for some reason you notice that after a Google update the emulators stop launching from AVD, repeat this steps and all will return to normal.


Post a Comment for "Android Emulator Running Extremly Slow On Ubuntu 17.04 Compared To Windows 10"