无法在模拟器 Android Studio 中启动 AVD [英] Cannot launch AVD in emulator Android Studio

查看:156
本文介绍了无法在模拟器 Android Studio 中启动 AVD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

android studio 2 模拟器的问题...

Problem with emulator in android studio 2...

无法在模拟器中启动 AVD

Cannot launch AVD in emulator

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

这是在控制台中:

当运行该答案的命令时,它给了我 bash: cd:/android-sdk-linux_x86/tools/lib64/libstdc++: No such file or directory

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

请大家帮忙....

推荐答案

Sdk 路径问题.....

链接Sdk 路径而不是$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++ 

在我的情况下使用路径就像那样

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

注意:-pathOfSDK/tools/lib64/libstdc++

可能重复无法在android studio中启动模拟器

这篇关于无法在模拟器 Android Studio 中启动 AVD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆