android-studio ubuntu react-native android-emulator ubuntu-16.04

android studio - Android Emulator no funciona en Ubuntu 16.10



android-studio react-native (2)

Uso un Acer Aspire E1-530 con un procesador Intel 2117U y 6 GB de RAM.

Seguí los pasos dados en el sitio web React Native para instalar React Native y Android Studio 2.3, y también instalé KVM como figura en esta documentación de Ubuntu . Android Studio se inicia sin problemas, y pude configurar con éxito un AVD, pero cuando abro el AVD, aparece una pequeña ventana por un breve segundo y luego desaparece. También intenté ejecutar el emulator desde ~/Android/Sdk/tools , pero muestra este 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)

Cuando ejecuto emulator-check accl , obtengo el siguiente resultado:

accel: 0 KVM (version 12) is installed and usable. accel


Reemplace la libstdc ++ del emulador así que con la suya:

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++/


Ejecutar emulador desde la terminal

$ emulator -use-system-libs -avd YOUR_VIRTUAL_DEVICE_NAME