zoukankan      html  css  js  c++  java
  • could not get wglGetExtensionsStringARB


    第一种解释:

    现象: 启动应用程序时,在Emulator中,提示“could not get wglGetExtensionsStringARB”。

    原因分析: device space不足。

    解决办法:

    选择AVD-Edit-Device中,选择一个较小的尺寸就可以了。毕竟,我们只是测试而已。

    另外,可以将Intener storage, Memory等设置的大一些,应该就可以了。

    第二种解释:

    分析:wglGetExtensionsStringARB属于OpenGL ES,此错误是由对OpenGL ES的支持不全引起。

    The OpenGL ES APIs provided by the Android framework offers a set of tools for displaying high-end, animated graphics that are limited only by your imagination and can also benefit from the acceleration of graphics processing units (GPUs) provided on many Android devices.

    简言之,OpenGL ES用于显示以及GPU加速,它也应用于Android emulator中,作为硬件加速的一部分。

    现代CPU为提高virtual machines的运行效率提供了一些扩展,Android emulator利用这些扩展加速执行速度,因此对运行系统的CPU有一定要求:

    • Intel Virtualization Technology (VT, VT-x, vmx) extensions
    • AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)

    无法支持的机器将无法运行使用这些扩展的emulator。

    解决:故而当出现这个error时,需要检查:

    • 机器支持Virrualization Technology
    • VM Acceleration正确配置:
    •      windows下使用Intel Hardware Accelerated Execution Manager (Intel HAXM)作为虚拟驱动,安装方式是:
    1. Start the Android SDK Manager, select Extras and then select Intel Hardware Accelerated Execution Manager.
    2. After the download completes, execute <sdk>/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.exe.
    3. Follow the on-screen instructions to complete installation.
  • 相关阅读:
    深入Java类加载全流程,值得你收藏
    如何用好Go的测试黑科技
    Go的内存对齐和指针运算详解和实践
    Go和Java的性能对比,真的如此吗?
    Go中锁的那些姿势,估计你不知道
    浅谈Go类型转换之间的那些事
    学堂在线课程字幕下载
    无序数组中求最大值和最小值的最少比较次数
    串口字符串-HEX格式
    个人程序命名规范
  • 原文地址:https://www.cnblogs.com/graceting/p/5034039.html
Copyright © 2011-2022 走看看