Cannot launch AVD in emulator Android Studio

Problem with emulator in android studio 2…

Cannot launch AVD in emulator

  • Using RxJava and Okhttp
  • How to properly implement linkedIn login ?
  • Why path drawn on scaled GLES20RecordingCanvas and simple Canvas has different qualities?
  • How to test android apps in a real device with Android Studio?
  • How can i turn off 3G/Data programmatically on Android?
  • Working POST Multipart Request with Volley and without HttpEntity
  • Output:
    libGL error: failed to load driver: nouveau
    libGL error: unable to load driver: swrast_dri.so
    libGL error: failed to load driver: swrast
    X 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:  47
      Current serial number in output stream:  46
    libGL error: unable to load driver: nouveau_dri.so
    libGL error: driver pointer missing
    libGL error: failed to load driver: nouveau
    libGL error: unable to load driver: swrast_dri.so
    libGL error: failed to load driver: swrast
    X 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:  47
      Current serial number in output stream:  46
    libGL error: unable to load driver: nouveau_dri.so
    libGL error: driver pointer missing
    libGL error: failed to load driver: nouveau
    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)
    emulator: WARNING: VM heap size set below hardware specified minimum of 384MB
      Major opcode of failed request:  155 (GLX)
    emulator: WARNING: Setting VM heap size to 384MB
      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
    

    and this is in Console:

    Error

    and when running command for that answer it gives me bash: cd: /android-sdk-linux_x86/tools/lib64/libstdc++: No such file or directory

    please guys help….

  • Android Studio - Gradle sync project failed
  • Android studio 1.0.2 not building app:mergeDebugResources error
  • FragmentTabHost - No tab known for tag null
  • Retrofit 2 not sending data when ProGuard is enabled
  • How do I pass data between Activities in Android application?
  • Android: Logcat doesn't show anything in Intellij IDEA
  • 3 Solutions collect form web for “Cannot launch AVD in emulator Android Studio”

    Problem with the Sdk path…..

    Linked the Sdk path instead of $ANDROID_HOME

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

    In my case using path like that

     1. cd Desktop/blackgoogle/Android/Sdk/tools/lib64/libstdc++
     2. mv libstdc++.so.6 libstdc++.so.6.bak
     3. cd
     4. ln -s /usr/lib64/libstdc++.so.6 Desktop/blackgoogle/Android/Sdk/tools/lib64/libstdc++
    

    Note:-pathOfSDK/tools/lib64/libstdc++

    Possibly duplicate of Cannot start Emulator in android studio

    Pick “Software” in the Emulated Performance Graphics option, in the AVD settings instead of “Automatic”

    screenshot

    Use the below 3 commands to solve this error.

    mv ~/Android/Sdk/tools/lib64/libstdc++/libstdc++.so.6{,.bak}
    mv ~/Android/Sdk/tools/lib64/libstdc++/libstdc++.so.6.0.18{,.bak}
    ln -s /usr/lib/libstdc++.so  ~/Android/Sdk/tools/lib64/libstdc++/
    
    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.