Android 模拟器黑屏 Ubuntu 虚拟机 Windows 7

black screen in Android emulator in Ubuntu VM in Windows 7

我构建了 AOSP 5.1。0_r5 (LMY47O) 没有对源代码进行任何修改。构建过程以 "success" 结束,我在 out/target/product/deb. Sadly, executing emulator -verbose produces the generic emulator window with an empty screen and following output in the console 中得到了一堆 *.img 文件。我看不到任何可以解释黑屏的内容。 (黑屏看了几十分钟,怀疑是不是"merely very slow.")

我的环境是Ubuntu16.04运行在VirtualBox下Windows7,没有IDE涉及。

只是一个假设。您的输出中有一行:Failed to create Context 0x3005 Could not initialize emulated framebufferemulator: Can't start OpenGLES renderer? 看来这就是问题的原因。您能否再次安装以下库 sudo apt-get install mesa-utils-extra 和 运行 您的模拟器?

P.S。目标是什么deb?尝试使用推荐的目标构建 AOSP,例如 aosp_arm-eng.