Android Studio Emulator不使用API 27
Android Emulator不使用Api 27,并给出以下错误:Android Studio Emulator不使用API 27,android,android-studio,Android,Android Studio,Android Emulator不使用Api 27,并给出以下错误: 5:36 PM Emulator: init: Could not find wglGetExtensionsStringARB! 5:36 PM Emulator: emulator: ERROR: Missing initial data partition file: C:\Users\ACER\.android\avd\Nexus_5_API_27_1.avd/userdata.img 5:
5:36 PM Emulator: init: Could not find wglGetExtensionsStringARB!
5:36 PM Emulator: emulator: ERROR: Missing initial data partition file: C:\Users\ACER\.android\avd\Nexus_5_API_27_1.avd/userdata.img
5:36 PM Emulator: getGLES2ExtensionString: Could not find GLES 2.x config!
5:36 PM Emulator: Failed to obtain GLES 2.x extensions string!
5:36 PM Emulator: Could not initialize emulated framebuffer
5:36 PM Emulator: emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
5:36 PM Emulator: Process finished with exit code -1073741819 (0xC0000005)
5:51 PM Emulator: qemu-system-i386.exe: Unable to open C:\Users\ACER\.android\avd\Galaxy_Nexus_API_25.avd\data\misc\pstore\pstore.bin: Permission denied
5:51 PM Emulator: Process finished with exit code 0
图形设置是自动的,当我选择软件图形时,仿真器只显示空白屏幕。您可以尝试改用Genymotion仿真器。可能这(暂时)解决了您的问题。它清楚地显示了
错误:无法初始化OpenglES仿真,请使用“-gpu off”禁用它。
这意味着,您可以使用命令行开关-gpu off
以使用“软件GLES”进行渲染,或者只需升级图形卡和/或安装openGL驱动程序
请参见,有两个新的命令行开关:
-gpu-swiftshader\u-indirect
和-gpu-angle\u-indirect
。虽然这个问题可能遗漏了一个小细节:您使用的是哪个CPU、多少RAM和哪个图形适配器??除非有合适的硬件可用,否则您必须取消勾选“使用主机Gpu”复选框。您使用的是什么版本的Android Studio,在什么操作系统上?ِAndroid Studio 3.0.1,Windows 10建议的副本谢谢,您真的救了我一天。更新后有点奇怪,我通常在没有gpu
开关的情况下运行模拟器,并且在更新它之前工作正常。在我得到错误后,我尝试使用-gpu off
开关,但是我的模拟器的性能下降了很多,但是通过使用-gpu开关,我的模拟器看起来更平滑。你知道原因吗?@Nanangarsyad这是因为-gpu off
是一个纯软件光栅化器(很可能是直接渲染);-gpu switfshader\u indirect
是SwiftShader OpenGL ES驱动程序,具有间接渲染功能(两者都在CPU上运行,而不是在gpu上运行)。请看,这与问题有何直接关系?有很多这样的“使用Genymotion”答案,而OP没有要求其他答案。这和“我有一个Windows问题”-“你可以安装Linux”一样离题。这就是为什么我说这只是一个临时解决方案。没有其他答案,所以我认为解决这个问题的一个快速方法是切换模拟器。很抱歉,我试图帮助你。天哪!