Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot start Emulator in android studio 2.0

Tags:

android

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

When I was using 1.5 version all was going good. Is it a bug in android studio 2.0.

How to remove this error?

like image 686
Suraj Palwe Avatar asked Apr 11 '16 16:04

Suraj Palwe


People also ask

Why is my emulator not working Android Studio?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

Why emulator is not opening?

To avoid crashes and hangs caused by not having enough free disk space, the emulator checks for sufficient free disk space on startup, and will not start unless at least 2 GB is free. If the emulator fails to start for you, check to see that you have adequate free disk space.

How do I fix black screen emulator?

In newer versions of Android Studio, this is called "Wipe Data", and it is in the right-click menu for the device in the virtual device manager. This worked for me, thank you. In VS 2019, go to Android Device Manager, right click and, "factory reset". I had a black screen emulator and this resolved the problem for me.


1 Answers

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 

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

EDIT: in 15.10 x64 with current Sdk (23), the folder is $ANDROID_HOME/Sdk

like image 78
Giorgio Ghiatis Avatar answered Oct 31 '22 17:10

Giorgio Ghiatis