Android模拟器错误 ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
2016-04-12 09:37
696 查看
最近用Android Studio 2.1 Preview 5,打开模拟器出现如下错误信息:
emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored.init: Could not find wglGetExtensionsStringARB!
getGLES1ExtensionString: Could not find GLES 1.x config!
Failed to obtain GLES 1.x extensions string!
emulator: device fd:1112
HAXM is working and emulator runs in fast virt mode
emulator: ERROR: Could not initialize OpenglES emulation, use ‘-gpu off’ to disable it.
Could not initialize emulated framebuffer
解决方法
上网查了下解决办法,大概如下:出现问题因为 AVD 尝试呈现图形使用系统的图形卡和不能做,要么因为你系统的图形驱动程序不是最新的或者它不支持这所以这里是解决方案。
方法1:
- 更新您的操作系统的系统的显卡驱动程序。
- 重新启动您的系统。
- 设置你的系统的屏幕分辨率越高越好。
- 尝试从现在开始你的AVD。
方法2:
- 如果方法1 失败, 进入到AVD 管理器。
- 编辑您的AVD 。
- 取消选中 “使用主机GPU的选项。
- 点击 完成 (保存)。
- 开始再次AVD 。
因为我的显卡驱动禁掉了,所以方法1不行。我用方法2就可以了,不要选Emulated-Graphics:Hardware - GLES 2.0,如下图:
选Software - GLES 2.0,如下图:
重新运行,就可以打开AVD了。
相关文章推荐
- 在Android模拟器上模拟GPS功能总是null的解决方法
- 解决Android模拟器端口被占用问题的办法
- 二个android模拟器互发短信程序演示
- Android Studio注释模板介绍
- android模拟器开发和测试nfc应用实例详解
- Android模拟器中窗口截图存成文件实现思路及代码
- 关于Android Studio 和 Gradle的那些事儿
- 收藏各种技术源码
- android模拟器 avd路径如何修改
- Android Studio 使用 Gradle 打包 Jar-IT蓝豹
- 弄了两天,终于出来了android模拟器 AVD
- Android自定义按钮点击效果
- Android端口重定向
- Android Studio android.view.InflateException: Error inflating class com.baidu.mapapi.map.MapView
- Android Studio集成ShareSDK免费短信平台
- Cordova与Android之一 Activity跳转
- Android Studio 利用Gradle打包SDK jar文件
- Android Studio配置签名
- Android ADT 中的项目迁移到 Android Studio出现编码乱码问题
- 项目总结android studio——assets