android-studio – 由于操作系统Ubuntu 16.04缺少驱动程序,不允许我在android studio上运行模拟器

前端之家收集整理的这篇文章主要介绍了android-studio – 由于操作系统Ubuntu 16.04缺少驱动程序,不允许我在android studio上运行模拟器前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在ubuntu 16.04中使用 android studio 2.0并且让我运行模拟器avd因为显然它缺少驱动程序.我怎么能解决这个问题?

这是我运行模拟器后抛出的异常

  1. Cannot launch AVD in emulator.
  2.  
  3. Output:
  4. libGL error: unable to load driver: radeonsi_dri.so
  5. libGL error: driver pointer missing
  6. libGL error: Failed to load driver: radeonsi
  7. libGL error: unable to load driver: swrast_dri.so
  8. libGL error: Failed to load driver: swrast
  9. X Error of Failed request: GLXBadContext
  10. Major opcode of Failed request: 155 (GLX)
  11. Minor opcode of Failed request: 6 (X_GLXIsDirect)
  12. Serial number of Failed request: 49
  13. Current serial number in output stream: 48
  14. libGL error: unable to load driver: radeonsi_dri.so
  15. libGL error: driver pointer missing
  16. libGL error: Failed to load driver: radeonsi
  17. libGL error: unable to load driver: swrast_dri.so
  18. libGL error: Failed to load driver: swrast
  19. X Error of Failed request: GLXBadContext
  20. Major opcode of Failed request: 155 (GLX)
  21. Minor opcode of Failed request: 6 (X_GLXIsDirect)
  22. Serial number of Failed request: 49
  23. Current serial number in output stream: 48
  24. libGL error: unable to load driver: radeonsi_dri.so
  25. libGL error: driver pointer missing
  26. libGL error: Failed to load driver: radeonsi
  27. libGL error: unable to load driver: swrast_dri.so
  28. libGL error: Failed to load driver: swrast
  29. X Error of Failed request: BadValue (integer parameter out of range for operation)
  30. Major opcode of Failed request: 155 (GLX)
  31. Minor opcode of Failed request: 24 (X_GLXCreateNewContext)
  32. Value in Failed request: 0x0
  33. Serial number of Failed request: 33
  34. Current serial number in output stream: 34
  35. QObject::~QObject: Timers cannot be stopped from another thread
  36. emulator: WARNING: VM heap size set below hardware specified minimum of 128MB
  37. emulator: WARNING: Setting VM heap size to 384MB

非常感谢任何回复

解决方法

好吧,我找到了解决这个问题的方法.
我不知道Android Studio有什么问题,但他不能执行任何模拟器,现在我的解决方案是通过命令执行模拟器,然后使用android studio安装模拟器执行下面的命令,因为你需要有我的情况下的模拟器Nexus_5_API_21.
  1. LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libstdc++.so.6' ~/Android/Sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_5_API_21

我不记得我找到这个解决方案的确切位置,但我认为它在谷歌论坛上

猜你在找的Android相关文章