这几天在Win7,搭建android的开发环境。软件基本上都装好了,启动模拟器时却出来下面这个问题:
我尝试在命令行启动模拟器,但同样有警告:
could not get wglGetExtensionsStringAR
B
could not get wglGetExtensionsStringAR
B
could not get wglGetExtensionsStringAR
B
could not get wglGetExtensionsStringAR
B
could not get wglGetExtensionsStringAR
B
could not get wglGetExtensionsStringAR
B
could not get wglGetExtensionsStringAR
B
Failed to create Context 0x3005
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
虽然模拟器是启动了,跑了一下自带的程序,没有什么大的问题。我又进入 API Demos,专门找与OpenglES有关的例程进行测试,结果这些应用同样可以正常运行。这很可能“using software renderer”发挥了作用(即用软件模拟OpenglES的渲染效果)
本来想,基本能用就不管这个警告了。但又觉得这样很不舒服:明明知道有问题,却驼鸟掉他,这种习惯很不好。于是我开始在谷歌上查这个问题,这一查,才发现,众多国内,及国外的开发人员都遇到了与我类似的问题。网上的关于该问题的提问,基本上可以分两种情况:
1 在虚拟机上,这搭建android开发环境时遇 到这个问题。
这种情况,网上已经有解决方案了:
http://stackoverflow.com/questions/10576996/how-do-i-run-the-android-emulator-after-a-build
“So disable 3D acceleration and it should work.”
2 在真实机器上,这搭建android开发环境时遇到这个问题。
这是我所遇到的情况,在网上我没有直接找到解决方案。不 过我知道Opengl这一类东西,就如DirectX一样
需要硬件支持,而且 要配上原厂驱动才能在最佳状态下运行。
![解决方案:android模拟器启动时警告“Could <wbr>not <wbr>initialize <wbr>OpenglES <wbr>emulation” 解决方案:android模拟器启动时警告“Could <wbr>not <wbr>initialize <wbr>OpenglES <wbr>emulation”](https://i-blog.csdnimg.cn/blog_migrate/e9e3219fbdff4c8e3919566de696d1a5.jpeg)
我尝试在命令行启动模拟器,但同样有警告:
could not get wglGetExtensionsStringAR
could not get wglGetExtensionsStringAR
could not get wglGetExtensionsStringAR
could not get wglGetExtensionsStringAR
could not get wglGetExtensionsStringAR
could not get wglGetExtensionsStringAR
could not get wglGetExtensionsStringAR
Failed to create Context 0x3005
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
1 在虚拟机上,这搭建android开发环境时遇 到这个问题。
这种情况,网上已经有解决方案了:
http://stackoverflow.com/questions/10576996/how-do-i-run-the-android-emulator-after-a-build
“So disable 3D acceleration and it should work.”
2 在真实机器上,这搭建android开发环境时遇到这个问题。
这是我所遇到的情况,在网上我没有直接找到解决方案。不 过我知道Opengl这一类东西,就如DirectX一样
需要硬件支持,而且 要配上原厂驱动才能在最佳状态下运行。
——————————————————————————————————
现象: 启动应用程序时,在Emulator中,提示“could not get wglGetExtensionsStringARB”。
原因分析: device space不足。
解决办法:
选择AVD-Edit-Device中,选择一个较小的尺寸就可以了。毕竟,我们只是测试而已。
另外,可以将Intener storage, Memory等设置的大一些,应该就可以了。
————————————————————————————————————————1、其实就是因为当前ADT版本过高操作系统中的某些文件没跟上来,控制面板\系统和安全\Windows Update 更新系统软件
2、显卡驱动有问题,把你电脑上的显卡厂家的驱动安装一下就ok了,我的就是这个问题,费了我很长时间。
AVD Manager -> 选择模拟器 -> 点击 Edit看 Enabled 是不是被选中了,是的话取消选中,OK,希望对你有用.