{"id":9371,"date":"2016-05-19T10:56:11","date_gmt":"2016-05-19T09:56:11","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/?p=9371"},"modified":"2018-07-13T12:12:42","modified_gmt":"2018-07-13T12:12:42","slug":"how-to-run-android-studio-on-windows-without-disabling-hyper-v","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/9371-how-to-run-android-studio-on-windows-without-disabling-hyper-v.html","title":{"rendered":"How to run Android Studio on Windows without disabling Hyper-V"},"content":{"rendered":"<p><b>Update:<\/b> This post is out of date; you may still be able to get it to work but there are stability issues with the emulator. Microsoft has <a href=\"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/2018\/05\/08\/hyper-v-android-emulator-support\/\">announced<\/a> a better solution, if you are on the latest Windows 10 April 2018 Update or later, and you can now use the official Android emulator with Hyper-V. See also my more recent post <a href=\"https:\/\/www.itwriting.com\/blog\/10977-hyper-v-compatible-android-emulator-now-available.html\">here<\/a>.<\/p>\n<p><b>Original post:<\/b><\/p>\n<p>If you run Windows and use the Hyper-V hypervisor, which is used by Visual Studio as well as being handy for testing stuff in virtual machines, then you will encounter an annoyance if you go on to install Android Studio, Google\u2019s official IDE for Android.<\/p>\n<p>The problem is that Google\u2019s Android emulator uses Intel\u2019s HAXM (Hardware Accelerated Execution Manager) which uses the same CPU virtualization extensions as Hyper-V. This means it is incompatible. It is not only that you can\u2019t run Hyper-V and HAXM simultaneously; the PC has to be configured at boot to use one or the other. <\/p>\n<p>The solution (if you do not want to disable Hyper-V) is to use Microsoft\u2019s Android emulator, which is a free download <a href=\"https:\/\/www.visualstudio.com\/en-us\/features\/msft-android-emulator-vs.aspx\" target=\"_blank\">here<\/a>.<\/p>\n<p><a href=\"https:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2016\/05\/image.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2016\/05\/image_thumb.png\" width=\"404\" height=\"349\" \/><\/a><\/p>\n<p>In order to use this with Android Studio, you need to run the emulator first. Then, in Android Studio, go to Run \u2013 Edit Configurations and select Show Device Chooser Dialog under Deployment Target Options.<\/p>\n<p><a href=\"https:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2016\/05\/image1.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2016\/05\/image_thumb1.png\" width=\"329\" height=\"128\" \/><\/a><\/p>\n<p>Now run your project, and select the VS Emulator, ignoring the invitation to \u201cTurn off Hyper-V\u201d:<\/p>\n<p><a href=\"https:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2016\/05\/image2.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2016\/05\/image_thumb2.png\" width=\"404\" height=\"206\" \/><\/a><\/p>\n<p>Now you can debug your application in the Visual Studio Emulator \u2013 which is pretty good.<\/p>\n<p><a href=\"https:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2016\/05\/image3.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2016\/05\/image_thumb3.png\" width=\"404\" height=\"241\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update: This post is out of date; you may still be able to get it to work but there are stability issues with the emulator. Microsoft has announced a better solution, if you are on the latest Windows 10 April 2018 Update or later, and you can now use the official Android emulator with Hyper-V. &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/9371-how-to-run-android-studio-on-windows-without-disabling-hyper-v.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to run Android Studio on Windows without disabling Hyper-V<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,55],"tags":[143,955],"class_list":["post-9371","post","type-post","status-publish","format-standard","hentry","category-android","category-microsoft","tag-android","tag-visual-studio"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/9371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=9371"}],"version-history":[{"count":7,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/9371\/revisions"}],"predecessor-version":[{"id":10979,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/9371\/revisions\/10979"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=9371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=9371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=9371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}