从 ssh 运行后,android 模拟器不会在 ubuntu 12.04 上启动

标签 android android-emulator android-source ubuntu-12.04

我基于 http://source.android.com/source/building.html 构建了 android 源代码在 Ubuntu 12.04 上运行模拟器时出现错误,模拟器无法启动:

WARNING: Application calling GLX 1.3 function "glXCreatePbuffer" when GLX 1.3 
         is not supported!  This is an application bug!
X Error of failed request:  GLXUnsupportedPrivateRequest
  Major opcode of failed request:  146 (GLX)
  Minor opcode of failed request:  16 (X_GLXVendorPrivate)
  Serial number of failed request:  20
  Current serial number in output stream:  22

知道如何解决这个问题吗?

我需要说明一下,我使用 SSH 连接到机器。当我从 Ubuntu 机器连接并运行时,它工作正常,但是当我通过 SSH 连接到我的 macbook 机器并尝试运行它时,它给了我上述错误。

BR, 拉敏

最佳答案

昨天发现了一个变通办法。

问题似乎出在 android-sdks/tools/emulator 上,而 emulator-arm 似乎工作正常。

要测试 cd 到 android-sdks/tools 目录并输入: emulator-arm -avd your_avd

看起来这会强制模拟器使用软件渲染器而不是 OpenGL,但对我来说(使用 NX)它有效。

我在这里找到了工作: https://answers.launchpad.net/ubuntu/+source/xorg/+question/203681

关于从 ssh 运行后,android 模拟器不会在 ubuntu 12.04 上启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10998146/

相关文章:

java - arrayList<MyClass> 不保存值

android - 在模拟器相机应用程序中看不到虚拟场景图像

android - 下载 Android 开源代码时出现 "Error exited sync due to fetch errors android"

android - 与 passthrough 相比,binderised hidl 的优势是什么?

android - 为什么我不能在对话框 View 中为按钮设置 onClickListener?

android - AOSP 使用 Android Studio 调试 system_process

java - 如果 TextView 大于 1 行,如何在 TextView 上显示省略号?

android - .onStart() 未调用 Firebase RecyclerView ClickListener

android - 我如何从 firebase 获取多个 key

java - 无法启动 Android 模拟器