Search code examples
androidandroid-studioandroid-virtual-device

Android Studio Emulator not working with Vanguard


The title may seem rhetorical given that solutions for this problem already exist

but, my problem is a bit different, in that my emulator still terminates after uninstalling vgc service and vgk as well so idk what's the problem anymore and change logs show

Emulator: Pixel 6 API 29 - Failed to sync vcpu reg 

this and the solution was to make sure I don't have any VM's running which I'm pretty sure are not running

Edit: I tried running Gennymotion and that too did not work as well... if this helps


Solution

  • I remember spending half a day in 2020 trying to find out why my emulators stopped working... I'm really impressed that this is still an issue in 2023.

     

    Update

    It seems that uninstalling Vanguard also disables Window's Virtual Machine Platform, to re-enable it follow the instructions described in this answer:

    1. Right-click on the Start menu button and select Apps and Features
    2. Select Programs and Features on the right under related settings
    3. Select the checkbox Virtual Machine Platform

    If you haven't uninstalled Vanguard yet or you are still unsure about it, read the original answer. In any case, first uninstall Vanguard completely and then enable Windows' feature.

     

    Original Aswer

    Check the following,

    1. You completely uninstalled Vanguard
    2. You restarted your PC afterward
    3. VGC and VGK services are no longer running
    4. You created a new emulator, just to be sure

    If all fail give Riot's Manual Uninstall Guide a try.