gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 15:57:55 25 4
gpt4 key购买 nike

我在 ubuntu 16.04 中使用 android studio 2.0,不要让我运行模拟器 avd,因为它显然缺少驱动程序。我怎么能解决这个问题?

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

Cannot launch AVD in emulator.

Output:
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
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: 49
Current serial number in output stream: 48
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
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: 49
Current serial number in output stream: 48
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
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
emulator: WARNING: VM heap size set below hardware specified minimum of 128MB
emulator: WARNING: Setting VM heap size to 384MB

将不胜感激任何回应!

最佳答案

嗯,我找到了解决这个问题的方法。
我不知道 Android Studio 有什么问题,但他无法执行任何模拟器,现在我的解决方案是通过命令执行模拟器,之后您使用 android studio 安装模拟器执行下面的命令,因为您需要有模拟器,在我的例子中是 Nexus_5_API_21。

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-studio - 由于操作系统 Ubuntu 16.04 中缺少驱动程序,不允许我在 android studio 上运行模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37050536/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com