Android Emulator doesn't launch. Asks to set hw.gpu.mode to off

Tim Fonshell 0 Reputation points
2023-03-15T09:32:57.5533333+00:00

Hi

I am quite desperate because I can not for the life of me get my android emulator to start anymore.

When I try to start it with the debugger, the output window just states that the emulator could not be started.

If I try to start it from the device manager I get this error message:

"Please check if you can update your video driver.

If it doesn't help, try to Edit the AVD and set "hw.gpu.mode=off"."

I already found this thread: https://developercommunity.visualstudio.com/t/android-emulator-hw-gpu-accelaration-destroyed-aft/1668072

But these solutions didn't help. This happened before and I could only get it to work by resetting my whole system. Now, just a month later this happened again.

How can this be fixed?

Thanks in advance

Tim

User's image

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,841 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,110 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 30,566 Reputation points Microsoft Vendor
    2023-03-16T10:15:29.08+00:00

    Hello @Tim Fonshell ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    You may need to create a file called "advancedFeatures.ini" in your Android Emulator folder:

    On my side, the folder was:

    C:\Users\username\ .android\

    User's image

    Add following content to the file:

    
    WindowsHyp
    
    ervisorPlatform=on
    
    Vulkan=off
    
    GLDirectMem=on
    
    
    

    User's image

    If the error persists, I may recommend directly submitting a ticket on our Developer Community for further investigate.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    10 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.