Android Studio Emulator无法使用API​​ 27

时间:2017-12-29 15:58:29

标签: android android-studio

Android模拟器没有使用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: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

图形设置为自动,当我选择软件图形时,模拟器只显示空白屏幕。

2 个答案:

答案 0 :(得分:3)

它清楚地显示ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.,这意味着,您可以使用命令行开关-gpu off以使用“Software GLES”进行渲染,或者只升级您的显卡 / 安装openGL驱动程序。

请参阅release notes,有两个新的命令行开关:-gpu swiftshader_indirect-gpu angle_indirect。虽然这个问题可能缺少一个小细节:你使用哪个CPU,多少RAM和哪个图形适配器?除非有适当的硬件,否则你必须取消选中“使用主机Gpu”复选框。

答案 1 :(得分:-1)

您可以尝试使用Genymotion仿真器。也许这(暂时)解决了你的问题。