在Ubuntu16.10 上啟動Android 自帶的模擬器報錯錯誤信息如下:
/opt/androidsdk/tools/emulator -netdelay none -netspeed full -avd Android_TV1080_22libGL error: unable to load driver: i965_dri.soNote: The environment variable $ANDROID_SDK_HOME is set, and the emulator uses that variable to locate AVDs.This may result in the emulator failing to start if it cannot find the AVDs in the folder pointed to by thegiven environment variable.ANDROID_SDK_HOME=/opt/androidsdklibGL error: driver pointer missinglibGL error: failed to load driver: i965libGL error: unable to load driver: i965_dri.solibGL error: driver pointer missinglibGL error: failed to load driver: i965libGL error: unable to load driver: swrast_dri.solibGL error: failed to load driver: swrastX 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: 54libGL error: unable to load driver: i965_dri.solibGL error: driver pointer missinglibGL error: failed to load driver: i965libGL error: unable to load driver: i965_dri.solibGL error: driver pointer missinglibGL error: failed to load driver: i965libGL error: unable to load driver: swrast_dri.solibGL error: failed to load driver: swrastX 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: 54libGL error: unable to load driver: i965_dri.solibGL error: driver pointer missinglibGL error: failed to load driver: i965libGL error: unable to load driver: i965_dri.solibGL error: driver pointer missinglibGL error: failed to load driver: i965libGL error: unable to load driver: swrast_dri.solibGL error: failed to load driver: swrastX 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: 40QObject::~QObject: Timers cannot be stopped from another thread百度直譯 如下:
/選擇/ SDK /工具/模擬器- netdelay非netspeed全AVD android_tv1080_22libgl錯誤:無法加載驅動程序:i965_dri.so注:環境變量$ android_sdk_home設置和模擬器使用變量來定位AVDs。這可能會導致模擬器無法啟動如果它不能在文件夾中查找AVDS指出的給定環境變量。android_sdk_home = /選擇/ SDKlibgl錯誤:驅動指針丟失libgl錯誤:無法加載驅動程序:i965libgl錯誤:無法加載驅動程序:i965_dri.solibgl錯誤:驅動指針丟失libgl錯誤:無法加載驅動程序:i965libgl錯誤:無法加載驅動程序:swrast_dri.solibgl錯誤:無法加載驅動程序:swrast失敗的請求X錯誤:GLXBadContext失敗的請求大碼:155(GLX)失敗的請求小碼:6(x_glxisdirect)失敗的請求的序列號:55當前序列號在輸出流:54libgl錯誤:無法加載驅動程序:i965_dri.solibgl錯誤:驅動指針丟失libgl錯誤:無法加載驅動程序:i965libgl錯誤:無法加載驅動程序:i965_dri.solibgl錯誤:驅動指針丟失libgl錯誤:無法加載驅動程序:i965libgl錯誤:無法加載驅動程序:swrast_dri.solibgl錯誤:無法加載驅動程序:swrast失敗的請求X錯誤:GLXBadContext失敗的請求大碼:155(GLX)失敗的請求小碼:6(x_glxisdirect)失敗的請求的序列號:55當前序列號在輸出流:54libgl錯誤:無法加載驅動程序:i965_dri.solibgl錯誤:驅動指針丟失libgl錯誤:無法加載驅動程序:i965libgl錯誤:無法加載驅動程序:i965_dri.solibgl錯誤:驅動指針丟失libgl錯誤:無法加載驅動程序:i965libgl錯誤:無法加載驅動程序:swrast_dri.solibgl錯誤:無法加載驅動程序:swrast失敗的請求X錯誤:BadValue(整數的參數范圍內運行)失敗的請求大碼:155(GLX)失敗的請求小碼:24(x_glxcreatenewcontext)在失敗的請求值:0x0失敗的請求的序列號:39當前序列號在輸出流:40QObject::~ QObject:定時器不能阻止另一個線程
sudo apt-get install lib64stdc++6進入tools/lib64/libstdc++ 文件夾
cd $ANDROID_SDK_HOME/tools/lib64/libstdc++備份已有的libstdc++.so.6 文件
mv libstdc++.so.6 libstdc++.so.6.bak對剛剛裝的庫文件 創建軟連接
ln -s /usr/lib64/libstdc++.so.6 $ANDROID_HOME/Sdk/tools/lib64/libstdc++最后啟動模擬器 ok 搞定。
新聞熱點
疑難解答