運行AVD遇到“Emulator] could not get wglGetExtensionsStringARB”問題的原因


錯誤信息:

[ - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[ - Emulator] could not get wglGetExtensionsStringARB

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.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM