Linux 系統(tǒng)下啟動(dòng)Android模擬器報(bào)錯(cuò)
Emulator: libGL error: unable to load driver: radeonsi_dri.so
Emulator: libGL error: driver pointer missing
Emulator: libGL error: failed to load driver: radeonsi
Emulator: libGL error: unable to load driver: radeonsi_dri.so
Emulator: libGL error: driver pointer missing
Emulator: libGL error: failed to load driver: radeonsi
Emulator: libGL error: unable to load driver: swrast_dri.so
Emulator: libGL error: failed to load driver: swrast
Emulator: X Error of failed request: BadValue (integer parameter out of range for operation)
Emulator: Major opcode of failed request: 156 (GLX)
Emulator: Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Emulator: Value in failed request: 0x0
Emulator: Serial number of failed request: 64
Emulator: Current serial number in output stream: 65
Emulator: Process finished with exit code 1
解決方法
- 在模擬器設(shè)置中將Graphics 設(shè)置為Software模式
- 或者命令行啟動(dòng)
~/Android/Sdk/tools/emulator -avd 模擬器名稱 -use-system-libs
- 或者創(chuàng)建軟鏈接
可以先查找系統(tǒng)的文件在哪個(gè)位置
find / -name "libstdc++.so*"
我的查找到的路徑在 /usr/lib/x86_64-linux-gnu/
然后創(chuàng)建軟鏈接
ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6* $ANDROID_SDK_HOME/Sdk/emulator/lib64/libstdc++/