首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android Studio仿真程序不使用API 27

Android Studio仿真程序不使用API 27
EN

Stack Overflow用户
提问于 2017-12-29 15:58:29
回答 2查看 2K关注 0票数 2

Android仿真程序无法使用Api 27,并给出了以下错误:

代码语言:javascript
复制
    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

图形设置是自动的,当我选择软件图形时,仿真器只显示空白屏幕。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-01-03 22:10:15

它清楚地读取ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.,这意味着,您可以使用命令行开关-gpu off来呈现"Software“,或者只需升级您的显卡/安装一个openGL驱动程序。

请参阅发布说明,有两个新的命令行开关:-gpu swiftshader_indirect-gpu angle_indirect。虽然这个问题可能遗漏了一个很小的细节:哪个CPU、多少RAM和哪个图形适配器?除非有适当的硬件可用,你必须取消勾选“使用主机Gpu”复选框。

票数 3
EN

Stack Overflow用户

发布于 2017-12-30 20:00:21

您可以尝试使用Genymotion仿真程序来代替。也许这个(暂时)能解决你的问题。

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48025133

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档