簡體   English   中英

運行 Android 模擬器時如何修復 GPU Driver Issue 錯誤

[英]How to fix GPU Driver Issue error when running the Android emulator

幾周前,我的 android 模擬器運行良好,但現在出現錯誤。 當我運行代碼時,GPU 驅動程序問題錯誤對話框與模擬器一起彈出。 當我單擊“確定”時,android 模擬器沒有按預期運行應用程序。

錯誤如下:

Your GPU driver information: ... Some users have experienced emulator stability issues with this driver version. As a result, we're selecting a compatibility renderer. Please check with your manufacturer to see if there is an updated driver available. Some users have experienced emulator stability issues with this driver version. As a result, we're selecting a compatibility renderer. Please check with your manufacturer to see if there is an updated driver available.

這是錯誤的截圖,然后是點擊“確定”的結果截圖:

運行 Android 模擬器時 GPU 驅動程序問題錯誤

GPU 驅動程序問題在模擬器中停止 Android 應用程序時出錯

這些步驟使我的 Dell latitude e7440 中的模擬器快速運行 在 AVD 管理器中,編輯您的模擬器。 模擬性能-圖形設置為軟件-GLES2.0 當您的模擬器啟動時,在右側面板上單擊三個點(擴展控件)轉到設置選項卡-高級。 選擇 OpenGL ES 渲染器 - ANGLE(D3D11) OpenGL ES API 級別 - 渲染器最大值

重啟你的模擬器。

從這里得到了這個想法https://developer.android.com/studio/run/emulator-acceleration

angle_indirect:(僅限 Windows)使用與快速啟動兼容的 ANGLE Direct3D 變體來使用軟件加速渲染圖形。 如果您的計算機無法使用硬件加速,則此選項是主機模式的一個很好的替代方案。 在大多數情況下,ANGLE 性能應該類似於使用主機模式,因為 ANGLE 使用 Microsoft DirectX 而不是 OpenGL。 在 Windows 上,Microsoft DirectX 驅動程序的問題通常比 OpenGL 驅動程序少。 此選項使用 Direct3D 11,並且需要帶有 Windows 7 平台更新的 Windows 10、Windows 8.1 或 Windows 7 SP1。

我最近也有這個問題。 我通過在 Android Studio 中更新我的模擬器和相關文件來解決它。 我相信您可以通過在 Android Studio 中單擊“幫助”->“檢查更新”然后讓它安裝所有更新來完成此操作。

您可能需要從“Beta 頻道”(默認情況下通常是“穩定頻道”)檢查更新。 您可以通過單擊文件 -> 設置 -> 外觀和行為 -> 系統設置 -> 更新並確保選中“自動檢查更新”框以及下拉列表中的“測試版頻道”來執行此操作。

Android Studio 更新設置以修復模擬器的 GPU 驅動程序問題

全部完成后,嘗試重新啟動 Android Studio,然后對項目進行全新的清理/重建。

更深入的信息在這里: https : //developer.android.com/studio/intro/update.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM