4

Ich benutze ein Acer Aspire E1-530 mit einem Intel 2117U Prozessor und 6 GB RAM.Android Emulator funktioniert nicht auf Ubuntu 16.10

Ich folgte den Schritten in der React Native Website, um React Native und Android Studio 2.3 zu installieren, und installierte auch KVM wie in this Ubuntu documentation angegeben. Android Studio startet problemlos, und ich konnte erfolgreich eine AVD einrichten, aber wenn ich die AVD starte, erscheint ein kleines Fenster für eine kurze Sekunde und verschwindet dann. Ich habe auch versucht emulator von ~/Android/Sdk/tools laufen, aber es zeigt diesen Fehler:

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) 

Wenn ich emulator-check accl laufen lasse, erhalte ich die folgende Ausgabe:.

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

Haben Sie diskrete Grafiken? –

Antwort

11

ersetzen Emulators libstdC++ so mit Ihrem eigenen:

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

keine Klärung dieser Antwort? –

2

Run-Emulator von Terminal

$ emulator -use-system-libs -avd YOUR_VIRTUAL_DEVICE_NAME

+0

Großartig. Das funktioniert gut in meinem Ubuntu – Pal

Verwandte Themen