I thought I would share a quick blog post for others who may have recently downloaded Visual Studio 2015 this week who use a Mac as their main machine & VMWare Fusion to run a copy of Windows on it.To run the emulator in Android Studio, make sure you're using Android Studio 4.1 or higher with version 30.0.10 or higher of the Android Emulator, then follow these steps: Click File > Settings > Tools > Emulator (or Android Studio > Preferences > Tools > Emulator on macOS ), then select Launch in a tool window and click OK.Setting Up Development Tools for the Android Platform. Platform (UWP), download and configure the Windows SDK by installing Microsoft Visual Studio 2015.So the first thing I done was hit the lovely smiley face in the main window, to give the Visual Studio team feedback on this and within 3 to 4 hours I received a reply on how to resolve this. Now that we’ve got our site ready for testing on Using Visual Studio for Mac, we can launch an Android emulator using the Tools > Device Manager menu (assuming you’ve installed the Android workload). If you don’t already have an Android device configured, create one by clicking the New Device button. I’m using the Pixel 2 Pie 9.0 image.Provided that you already have an Android emulator installed, you can run it from Visual Studio Code.
![]() Visual Studio Android Emulator Mac OS X Universal InstallerAnd, the last sentence mentions that the Xamarin Android Player (XAP) is therefore officially deprecated!!!I thought something along the lines of “hm, interesting” and then tried it out. The emulator started but the app could not be deployedBut then, I stumbled upon the “Live from dotNetConf: Cycle 7, Xamarin Studio 6, and more” blog post by Miguel de Icaza, written on June 8, 2016:In the section “New Mac OS X Universal Installer”, a sidenote mentions that there is a new (and improved) Android Emulator from Google and that there is an improved Hyper-V based Android Emulator for VS2015. I ended up with a recurring list of problems: There are various options, such as the Android Emulator from the Android SDK in combination with HAXM (Intel Hardware Accelerated Execution Manager), the Xamarin Android Player (XAP) and others.I tried many and could not get any to run within a reasonable time frame. My experience with the Android EmulatorsI tried using various emulators to run my Xamarin.Droid project. While deploying and debugging code on a real device worked, I always had issues with emulators.It supports device profiles to configure even the most exotic android setups It has a lot of features, such as multi-touch, location, driving simulations, accelerometer, screen orientation, SD card, battery, GPS, camera, audio or keyboard. It can be installed and used without Visual Studio About 35 minutes after reading the blog post by Miguel de Icaza, my app was running in the emulator! No errors, no crash, no frustration! That was the discovery of the day! Jiiihaaaaa….The details about the emulator can be found here: Close all running instances of Visual StudioAfter the installer has completed, you can find an application named “Visual Studio Emulator for Android” in your start menu. Make sure you have Hyper-V enabled in the BIOS settings3. It integrates seamlessly into Visual StudioThere is a great blog post that explains why there is a new Android emulator and what features it provides:It confirms my experience with the existing emulators and briefly states the reasons why a better emulator experience was necessary.The following article from Xamarin explains how to use the emulator and what to do if you need Google Play Services:There is another post that explains how to use the emulator with Android Studio or Eclipse with ADT:Installing the Visual Studio 2015 Android Emulator2. ![]() Since the emulators are Hyper-V based, a quick glance at the Hyper-V Manager gave me a hint:Finally, I found the emulator in VS named as: “5.2’’ Marshmallow (6.0.0) XXHDPI Phone (Android 6.0 – API 23)”.From there, I just clicked the button and Visual Studio deployed the app to the emulator. Unfortunately, it did not. Reading the blog posts, I expected the new emulator to show up as something like “VS Emulator 5.2’’ Marshmallow (6.0.0 – API 23)”. The cookies is used to store the user consent for the cookies in the category "Necessary".This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".This cookie is set by GDPR Cookie Consent plugin. These cookies ensure basic functionalities and security features of the website, anonymously.This cookie is set by GDPR Cookie Consent plugin. Add oauth for github mac sourcetreeIt does not store any personal data. The cookie is used to store the user consent for the cookies in the category "Performance".The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies.
0 Comments
Leave a Reply. |
AuthorStephanie ArchivesCategories |