Install Android emulator with Visual Studio We recommend using the Google Android emulator, as it offers access to the latest Android OS images and Google Play services. There are many Android emulator options available for Windows PCs. Emulator for cross-platform development with Visual Studio See the Android developer guide for more information.
Once your app is installed on the emulator device, you can use Apply Changes to deploy certain code and resource changes without building a new APK. Once your app is ready for testing, you can build and run your app by: When building and testing a native Android app, we recommend using Android Studio. Once the Windows Features list appears, scroll to find Hyper-V (includes both Management Tools and Platform) and Windows Hypervisor Platform, ensure that the box is checked to enable both, then select OK.Įmulator for native development with Android Studio Select Turn Windows features on or off from the search results. In the Windows search box (lower left), enter "windows features".
Verify that your computer hardware and software is compatible with Hyper-V by opening a command prompt and entering the command: systeminfo For more info, see the article: Hardware acceleration for emulator performance or the Android Studio Emulator documentation. If your machine doesn't fit this criteria, you may be able to run Intel HAXM or AMD Hypervisor.
You may receive a notification to install a USB driver.
Enable your device for developmentįor a device running a recent version of Android 9.0+: Developer options on Android have been hidden by default since version 4.2 and enabling them can vary based on the Android version. To run your app on a real Android device, you will first need to enable your Android device for development. We have outlined a few recommendations in this guide. There are several ways to test and debug your Android application using a real device or emulator on your Windows machine.