Android emulator on Hyper V error












22















Microsoft recently announced support for running android emulator on hyper V (https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/)



I am trying to start the Android emulator 27.2.9.0 on my Windows 10 (April 2018 Update) Hyper V enabled machine with the following command line:



> cd C:Users<username>AppDataLocalAndroidsdkemulatorlibqtlib
> ......emulator -avd <avd name> -feature WindowsHypervisorPlatform


And i am getting the following erroe message:



emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Windows Hypervisor Platform (WHPX) is properly installed and usable.
CPU acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.


I have added the “WindowsHypervisorPlatform = on” line to C:Users.androidadvancedFeatures.ini, but that didn't help.



What am I missing?










share|improve this question



























    22















    Microsoft recently announced support for running android emulator on hyper V (https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/)



    I am trying to start the Android emulator 27.2.9.0 on my Windows 10 (April 2018 Update) Hyper V enabled machine with the following command line:



    > cd C:Users<username>AppDataLocalAndroidsdkemulatorlibqtlib
    > ......emulator -avd <avd name> -feature WindowsHypervisorPlatform


    And i am getting the following erroe message:



    emulator: ERROR: x86 emulation currently requires hardware acceleration!
    Please ensure Windows Hypervisor Platform (WHPX) is properly installed and usable.
    CPU acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.


    I have added the “WindowsHypervisorPlatform = on” line to C:Users.androidadvancedFeatures.ini, but that didn't help.



    What am I missing?










    share|improve this question

























      22












      22








      22


      3






      Microsoft recently announced support for running android emulator on hyper V (https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/)



      I am trying to start the Android emulator 27.2.9.0 on my Windows 10 (April 2018 Update) Hyper V enabled machine with the following command line:



      > cd C:Users<username>AppDataLocalAndroidsdkemulatorlibqtlib
      > ......emulator -avd <avd name> -feature WindowsHypervisorPlatform


      And i am getting the following erroe message:



      emulator: ERROR: x86 emulation currently requires hardware acceleration!
      Please ensure Windows Hypervisor Platform (WHPX) is properly installed and usable.
      CPU acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.


      I have added the “WindowsHypervisorPlatform = on” line to C:Users.androidadvancedFeatures.ini, but that didn't help.



      What am I missing?










      share|improve this question














      Microsoft recently announced support for running android emulator on hyper V (https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/)



      I am trying to start the Android emulator 27.2.9.0 on my Windows 10 (April 2018 Update) Hyper V enabled machine with the following command line:



      > cd C:Users<username>AppDataLocalAndroidsdkemulatorlibqtlib
      > ......emulator -avd <avd name> -feature WindowsHypervisorPlatform


      And i am getting the following erroe message:



      emulator: ERROR: x86 emulation currently requires hardware acceleration!
      Please ensure Windows Hypervisor Platform (WHPX) is properly installed and usable.
      CPU acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.


      I have added the “WindowsHypervisorPlatform = on” line to C:Users.androidadvancedFeatures.ini, but that didn't help.



      What am I missing?







      android-emulator windows-10 hyper-v






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 16 '18 at 18:15









      Nimesh MadhavanNimesh Madhavan

      3,59653854




      3,59653854
























          4 Answers
          4






          active

          oldest

          votes


















          31














          Well, it turned out that I had "Hyper-V" enabled, but "Windows Hypervisor Platform" was not enabled. (Who knew these are two different things!). Once it was enabled the emulator started to work.



          enter image description here






          share|improve this answer



















          • 4





            I don´t have this Windows Hypervisor Platform, even if my windows is updated. What´s wrong?

            – Little Monkey
            Nov 7 '18 at 11:13











          • Thanks! I've been chasing a bunch of red herrings with avdmanager, sdkmanager and tns. This was the ticket.

            – grantwparks
            Jan 20 at 0:09



















          3














          There are a few things I did to get this working on my pc.




          • Install Visual Studio 15.8 Preview 1 or later

          • Remove and Reinstall the emulator within the Visual Studio Preview

          • I removed HAXM from the "Extras" within the android sdk manager (from
            the visual studio menu).

          • The path for the advancedFeatures.ini is C:UsersYour UsernameadvancedFeatures.ini to set WindowsHypervisorPlatform = on

          • Open Turn Windows features on or off and select Hyper-V and the Windows Hypervisor Platform checkboxes. (Requires restart)


          There is another guide from Microsoft here: https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs=vswin






          share|improve this answer


























          • Thanks for the Microsoft link. It made me realise that I didn't have the latest update (version 1803) after recently upgrading to Windows 10 Pro.

            – the_new_mr
            Nov 22 '18 at 17:33



















          3














          With latest Android Studio, you do not need Hyper-V on AMD
          Just enable "Windows Hypervisor Platform" (in turn windows features on and off screen) and x86 images should automatically become usable






          share|improve this answer

































            2














            I just had to uninstall the "Hyper-V Hypervisor" and the emulator started working. I'm using Windows 10 (1803). The emulators stop working if I install "Hyper-V Hypervisor".



            enter image description here






            share|improve this answer



















            • 1





              Cheers! That was my issue as well.

              – Kyle
              Dec 11 '18 at 22:08











            • @Kyle you are welcome. :)

              – JedatKinports
              Dec 12 '18 at 10:44











            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50890535%2fandroid-emulator-on-hyper-v-error%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            4 Answers
            4






            active

            oldest

            votes








            4 Answers
            4






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            31














            Well, it turned out that I had "Hyper-V" enabled, but "Windows Hypervisor Platform" was not enabled. (Who knew these are two different things!). Once it was enabled the emulator started to work.



            enter image description here






            share|improve this answer



















            • 4





              I don´t have this Windows Hypervisor Platform, even if my windows is updated. What´s wrong?

              – Little Monkey
              Nov 7 '18 at 11:13











            • Thanks! I've been chasing a bunch of red herrings with avdmanager, sdkmanager and tns. This was the ticket.

              – grantwparks
              Jan 20 at 0:09
















            31














            Well, it turned out that I had "Hyper-V" enabled, but "Windows Hypervisor Platform" was not enabled. (Who knew these are two different things!). Once it was enabled the emulator started to work.



            enter image description here






            share|improve this answer



















            • 4





              I don´t have this Windows Hypervisor Platform, even if my windows is updated. What´s wrong?

              – Little Monkey
              Nov 7 '18 at 11:13











            • Thanks! I've been chasing a bunch of red herrings with avdmanager, sdkmanager and tns. This was the ticket.

              – grantwparks
              Jan 20 at 0:09














            31












            31








            31







            Well, it turned out that I had "Hyper-V" enabled, but "Windows Hypervisor Platform" was not enabled. (Who knew these are two different things!). Once it was enabled the emulator started to work.



            enter image description here






            share|improve this answer













            Well, it turned out that I had "Hyper-V" enabled, but "Windows Hypervisor Platform" was not enabled. (Who knew these are two different things!). Once it was enabled the emulator started to work.



            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 11 '18 at 11:51









            Nimesh MadhavanNimesh Madhavan

            3,59653854




            3,59653854








            • 4





              I don´t have this Windows Hypervisor Platform, even if my windows is updated. What´s wrong?

              – Little Monkey
              Nov 7 '18 at 11:13











            • Thanks! I've been chasing a bunch of red herrings with avdmanager, sdkmanager and tns. This was the ticket.

              – grantwparks
              Jan 20 at 0:09














            • 4





              I don´t have this Windows Hypervisor Platform, even if my windows is updated. What´s wrong?

              – Little Monkey
              Nov 7 '18 at 11:13











            • Thanks! I've been chasing a bunch of red herrings with avdmanager, sdkmanager and tns. This was the ticket.

              – grantwparks
              Jan 20 at 0:09








            4




            4





            I don´t have this Windows Hypervisor Platform, even if my windows is updated. What´s wrong?

            – Little Monkey
            Nov 7 '18 at 11:13





            I don´t have this Windows Hypervisor Platform, even if my windows is updated. What´s wrong?

            – Little Monkey
            Nov 7 '18 at 11:13













            Thanks! I've been chasing a bunch of red herrings with avdmanager, sdkmanager and tns. This was the ticket.

            – grantwparks
            Jan 20 at 0:09





            Thanks! I've been chasing a bunch of red herrings with avdmanager, sdkmanager and tns. This was the ticket.

            – grantwparks
            Jan 20 at 0:09













            3














            There are a few things I did to get this working on my pc.




            • Install Visual Studio 15.8 Preview 1 or later

            • Remove and Reinstall the emulator within the Visual Studio Preview

            • I removed HAXM from the "Extras" within the android sdk manager (from
              the visual studio menu).

            • The path for the advancedFeatures.ini is C:UsersYour UsernameadvancedFeatures.ini to set WindowsHypervisorPlatform = on

            • Open Turn Windows features on or off and select Hyper-V and the Windows Hypervisor Platform checkboxes. (Requires restart)


            There is another guide from Microsoft here: https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs=vswin






            share|improve this answer


























            • Thanks for the Microsoft link. It made me realise that I didn't have the latest update (version 1803) after recently upgrading to Windows 10 Pro.

              – the_new_mr
              Nov 22 '18 at 17:33
















            3














            There are a few things I did to get this working on my pc.




            • Install Visual Studio 15.8 Preview 1 or later

            • Remove and Reinstall the emulator within the Visual Studio Preview

            • I removed HAXM from the "Extras" within the android sdk manager (from
              the visual studio menu).

            • The path for the advancedFeatures.ini is C:UsersYour UsernameadvancedFeatures.ini to set WindowsHypervisorPlatform = on

            • Open Turn Windows features on or off and select Hyper-V and the Windows Hypervisor Platform checkboxes. (Requires restart)


            There is another guide from Microsoft here: https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs=vswin






            share|improve this answer


























            • Thanks for the Microsoft link. It made me realise that I didn't have the latest update (version 1803) after recently upgrading to Windows 10 Pro.

              – the_new_mr
              Nov 22 '18 at 17:33














            3












            3








            3







            There are a few things I did to get this working on my pc.




            • Install Visual Studio 15.8 Preview 1 or later

            • Remove and Reinstall the emulator within the Visual Studio Preview

            • I removed HAXM from the "Extras" within the android sdk manager (from
              the visual studio menu).

            • The path for the advancedFeatures.ini is C:UsersYour UsernameadvancedFeatures.ini to set WindowsHypervisorPlatform = on

            • Open Turn Windows features on or off and select Hyper-V and the Windows Hypervisor Platform checkboxes. (Requires restart)


            There is another guide from Microsoft here: https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs=vswin






            share|improve this answer















            There are a few things I did to get this working on my pc.




            • Install Visual Studio 15.8 Preview 1 or later

            • Remove and Reinstall the emulator within the Visual Studio Preview

            • I removed HAXM from the "Extras" within the android sdk manager (from
              the visual studio menu).

            • The path for the advancedFeatures.ini is C:UsersYour UsernameadvancedFeatures.ini to set WindowsHypervisorPlatform = on

            • Open Turn Windows features on or off and select Hyper-V and the Windows Hypervisor Platform checkboxes. (Requires restart)


            There is another guide from Microsoft here: https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs=vswin







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jun 23 '18 at 11:10

























            answered Jun 20 '18 at 21:45









            JamesJames

            313




            313













            • Thanks for the Microsoft link. It made me realise that I didn't have the latest update (version 1803) after recently upgrading to Windows 10 Pro.

              – the_new_mr
              Nov 22 '18 at 17:33



















            • Thanks for the Microsoft link. It made me realise that I didn't have the latest update (version 1803) after recently upgrading to Windows 10 Pro.

              – the_new_mr
              Nov 22 '18 at 17:33

















            Thanks for the Microsoft link. It made me realise that I didn't have the latest update (version 1803) after recently upgrading to Windows 10 Pro.

            – the_new_mr
            Nov 22 '18 at 17:33





            Thanks for the Microsoft link. It made me realise that I didn't have the latest update (version 1803) after recently upgrading to Windows 10 Pro.

            – the_new_mr
            Nov 22 '18 at 17:33











            3














            With latest Android Studio, you do not need Hyper-V on AMD
            Just enable "Windows Hypervisor Platform" (in turn windows features on and off screen) and x86 images should automatically become usable






            share|improve this answer






























              3














              With latest Android Studio, you do not need Hyper-V on AMD
              Just enable "Windows Hypervisor Platform" (in turn windows features on and off screen) and x86 images should automatically become usable






              share|improve this answer




























                3












                3








                3







                With latest Android Studio, you do not need Hyper-V on AMD
                Just enable "Windows Hypervisor Platform" (in turn windows features on and off screen) and x86 images should automatically become usable






                share|improve this answer















                With latest Android Studio, you do not need Hyper-V on AMD
                Just enable "Windows Hypervisor Platform" (in turn windows features on and off screen) and x86 images should automatically become usable







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Dec 10 '18 at 18:04

























                answered Oct 14 '18 at 4:45









                Dinesh RajanDinesh Rajan

                1,5311313




                1,5311313























                    2














                    I just had to uninstall the "Hyper-V Hypervisor" and the emulator started working. I'm using Windows 10 (1803). The emulators stop working if I install "Hyper-V Hypervisor".



                    enter image description here






                    share|improve this answer



















                    • 1





                      Cheers! That was my issue as well.

                      – Kyle
                      Dec 11 '18 at 22:08











                    • @Kyle you are welcome. :)

                      – JedatKinports
                      Dec 12 '18 at 10:44
















                    2














                    I just had to uninstall the "Hyper-V Hypervisor" and the emulator started working. I'm using Windows 10 (1803). The emulators stop working if I install "Hyper-V Hypervisor".



                    enter image description here






                    share|improve this answer



















                    • 1





                      Cheers! That was my issue as well.

                      – Kyle
                      Dec 11 '18 at 22:08











                    • @Kyle you are welcome. :)

                      – JedatKinports
                      Dec 12 '18 at 10:44














                    2












                    2








                    2







                    I just had to uninstall the "Hyper-V Hypervisor" and the emulator started working. I'm using Windows 10 (1803). The emulators stop working if I install "Hyper-V Hypervisor".



                    enter image description here






                    share|improve this answer













                    I just had to uninstall the "Hyper-V Hypervisor" and the emulator started working. I'm using Windows 10 (1803). The emulators stop working if I install "Hyper-V Hypervisor".



                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 30 '18 at 12:58









                    JedatKinportsJedatKinports

                    2,48122237




                    2,48122237








                    • 1





                      Cheers! That was my issue as well.

                      – Kyle
                      Dec 11 '18 at 22:08











                    • @Kyle you are welcome. :)

                      – JedatKinports
                      Dec 12 '18 at 10:44














                    • 1





                      Cheers! That was my issue as well.

                      – Kyle
                      Dec 11 '18 at 22:08











                    • @Kyle you are welcome. :)

                      – JedatKinports
                      Dec 12 '18 at 10:44








                    1




                    1





                    Cheers! That was my issue as well.

                    – Kyle
                    Dec 11 '18 at 22:08





                    Cheers! That was my issue as well.

                    – Kyle
                    Dec 11 '18 at 22:08













                    @Kyle you are welcome. :)

                    – JedatKinports
                    Dec 12 '18 at 10:44





                    @Kyle you are welcome. :)

                    – JedatKinports
                    Dec 12 '18 at 10:44


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50890535%2fandroid-emulator-on-hyper-v-error%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Callistus III

                    Ostreoida

                    Index Sanctorum