无法在Android Studio 2.0中启动模拟器
我刚刚将Android Studio从1.5升级到了2.0.现在,当我尝试启动Emulator时遇到了一些奇怪的错误.我使用Ubuntu 15.10操作系统
I just upgraded my android studio from 1.5 to 2.0.And now I am facing some weird bug when I try to start Emulator. I use Ubuntu 15.10 OS
Android监视器返回此消息
Android monitor returns this message
sh: 1: glxinfo: not found
sh: 1: glxinfo: not found
libGL error: unable to load driver: r600_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: r600
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: 33
Current serial number in output stream: 34
QObject::~QObject: Timers cannot be stopped from another thread
当我使用1.5版本时,一切都很好.这是android studio 2.0中的错误吗?
When I was using 1.5 version all was going good. Is it a bug in android studio 2.0.
如何清除此错误?
验证您已在系统lib64stdc ++ 6中安装
Verify that you have installed in your system lib64stdc++6
使用32位操作系统:
# apt-get install lib64stdc++6
在启用了多体系结构的64位操作系统上:
With a 64 bits operating system with multiarch enabled :
# apt-get install lib64stdc++6:i386
然后将新安装的库链接到android sdk工具路径
Then link the new installed libraries to the android sdk tools path
$ cd $ANDROID_HOME/android-sdk-linux_x86/tools/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak
$ ln -s /usr/lib64/libstdc++.so.6 $ANDROID_HOME/android-sdk-linux_x86/tools/lib64/libstdc++
在具有当前SDK(23)的15.10 x64
中,文件夹为$ANDROID_HOME/Sdk
in 15.10 x64
with current Sdk (23), the folder is $ANDROID_HOME/Sdk