Emulator error sh: 1: glxinfo: not found

Emulator error sh: 1: glxinfo: not found

android emulator

Cannot start Emulator in android studio 2.0 in ubuntu

sh: 1: glxinfo: not found shsh: 1: glxinfo: not found libGL errorlibGL error: unable to load driver: r600_dri.so libGL errorlibGL error: driver pointer missing libGL errorlibGL error: failed to load driver: r600 libGL errorlibGL error: unable to load driver: swrast_dri.so libGL errorlibGL error: failed to load driver: swrast


1,Verify that you have installed in your system lib64stdc++6


With a 32 bits operating system :

# apt-get install lib64stdc++6
With a 64 bits operating system with multiarch enabled :


# apt-get install lib64stdc++6:i386

2, Install mesa-demos


$ sudo apt-get install mesa-utils

3, Move libstdc++.so.6 out of the way by renaming it to libstdc++.so.6.bak


$ cd ~/$ANDROID_HOME/Android/Sdk/tools/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak

Easy you open android studio and update API Android SDK



fix emulator


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

Working in ubuntu 16.04 lts
Run emulator again >>
emulator -use-system-libs -avd YOUR_VIRTUAL_DEVICE_NAME
Like and shared Fanpage, thank you !!

Share on Google Plus

About DJ Tình

Muốn xây dựng đất nước, trước hết phải phát triển giáo dục. Muốn trị nước, phải trọng dụng người tài.
    Blogger Comment
    Facebook Comment

0 nhận xét:

Post a Comment