Android emulator not working on Ubuntu 16.10

I am using an Acer Aspire E1-530 with an Intel 2117U processor and 6 GB of RAM.

I followed the steps in the React Native Website to install React Native and Android Studio 2.3, as well as install KVM as mentioned in this Ubuntu documentation . Android Studio starts without problems, and I was able to successfully configure AVD, but when I start AVD, a small window appears for a short second and then disappears. I also tried running emulator from ~/Android/Sdk/tools , but it shows this error:

 libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext Major opcode of failed request: 155 (GLX) Minor opcode of failed request: 6 (X_GLXIsDirect) Serial number of failed request: 55 Current serial number in output stream: 54 libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext Major opcode of failed request: 155 (GLX) Minor opcode of failed request: 6 (X_GLXIsDirect) Serial number of failed request: 55 Current serial number in output stream: 54 libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 155 (GLX) Minor opcode of failed request: 24 (X_GLXCreateNewContext) Value in failed request: 0x0 Serial number of failed request: 39 Current serial number in output stream: 40 QObject::~QObject: Timers cannot be stopped from another thread Segmentation fault (core dumped) 

When I run emulator-check accl , I get the following output:

 accel: 0 KVM (version 12) is installed and usable. accel 
+4
android-emulator android-studio ubuntu react-native
source share
2 answers

Replace the libstdC ++ emulator, so with yours:

 mv ~/Android/Sdk/emulator/lib64/libstdc++/libstdc++.so.6{,.bak} mv ~/Android/Sdk/emulator/lib64/libstdc++/libstdc++.so.6.0.18 {,.bak} ln -s /usr/lib/libstdc++.so ~/Android/Sdk/emulator/lib64/libstdc++/ 
+11
source share

Run emulator from terminal

$ emulator -use-system-libs -avd YOUR_VIRTUAL_DEVICE_NAME

+2
source share

All Articles