Android emulator on VS 2015? - android

I just installed Visual Studio Community 2015 Update 3 (with Xamarin) from scratch from the 7GB ISO.My aim is to create a blank Xamarin project and run it in an Android emulator.
But in the Start button, I can't even see the device/emulator selections.
I thought Visual Studio comes with an Android emulator.
What am I missing? How can I run it on an emulator?

Not 100% sure with your Visual Studio version but it's an optional feature in Visual Studio Enterprise. I had to choose it specifically to install it. You can go to Programs and Features, choose to change Visual Studio 2015, then choose Modify and add the Android Emulator like this:

Related

Xamarin.Forms Visual Studio 2017 project does not deploy

I am new to Xamarin. I used Xamarin. Forms template to create a sample mobile solution in Visual Studio 2017. The process created four projects Xamarin PCL, Xamarin Android, Xamarin.iOS and Xamarin.UWP. Without making any modification to the generated solution, I am trying to run it.
The first issue is, when I set the UWP as the starting project, the Windows emulator shows up and runs the app perfectly. But when I try to do the same with Android, I get different errors at different times based on the environment changes I make. Finally, using the visual studio android emulator, the Phone UI shows up but not my app. In the background, I can see that Visual Studio completed the build process successfully without any errors but the deploy process simply hangs. I left the deploy running overnight but still running in the morning. Here is my environment.
Intel Core i7 processor
Virtualization enabled in BIOS
Windows 10 Education
32GB RAM
Hyper-V disabled in Windows
Executed bcdedit /set hypervisorlaunchtype off in the command window and rebooted.
I tried setting the above environment in different combinations but none of them seem to make the app work. When I use an android emulator from android SDK, the build process throws errors. The only emulator that even builds is the visual studio emulator. But the deploy hangs.
A second issue I have is, I have installed android SDK for version 24 and 25. But in the emulator dropdown, I can only see the emulators for 23. I checked the installation path both in visual studio and android SDK manager and they both point to the same installation folder. What do I need to make the emulators for version 24 and 25 usable?
I repeat, I did not make any change to the generated solution in visual studio before running it. I have been at it for the past three days and couldn't make it work. Please help.
I just installed Visual Studio 2017 (on Win10 15063.138) and found, like you, Xamarin projects won't deploy to Android. Here's how I got running:
Updated everything in the Android SDK Manager.
Installed the new, improved Android Emulator from MS:
https://www.visualstudio.com/vs/msft-android-emulator/
Used that to download/install an API level 23 (6.0 Marshmallow)
emulator
Started that emulator using the same tool (you'll see it running in Hyper-V Manager)
Selected same emulator in VS for deploy/debug (the emulators that ship with VS are painfully slow)
In VS, selected Android project for start-up and verified build and deploy to Android in build config mgr.
Note: MS doesn't appear to have any emulators above API level 23, so Compilation and Target settings for your Android project can be the latest, but the minimum target will have to be 6.0 (API 23).
After pulling my hair for the past few days, I finally got my Xamarin.Forms Android App to show my page on the emulator. Thanks to all the members for their suggestions. Ryan's suggestion helped a lot ( I +1ed him, thanks Ryan) but did not solve my problem. I googled further and found a suggestion that asked to change the following setting which did it for me finally. So, if anyone else get stuck like I did, please do the following (in addition to cleaning up and updating all packages):
Open up the setting for your Hyper-V vm for your emulator (while the VM is off).
Expand the Processor node on the left and click on "Compatibility".
Now put a check mark on "Migrate to a physical computer with a different processor version" on the right.
Start your emulator in the Visual Studio Emulator tool.
Now, start debug your android project in VS using the same emulator that is already running.
After a delay (there is always a delay), your app will show up on the emulator. Yey!!

how to solve error Xamarin Android player Beta has expired ,Please update

I have created a Helloworld cross platform project from Visual Studio .
The project builded successfully and while running the android project using the emulator (Nexus4 KitKat Android 4.4 ) I am getting this warning
Xamarin Android player Beta has expired ,Please update
And once I press OK I am getting message
There were deployment errors . Do you want to continue?
How can I fix this issue? Did I missed any components during the installation of xamarin for visual studio?
Xamarin Android player is cancelled officially , so my recommendations for you are three Emulators.
Visual Studio Emulator for Android: For me this is the best emulator available. However it requires that Hyper-V feature to be enabled.
Genymotion: I see this as a better alternative for Xamarin Android Player. However it needs a license.
Android Emulator which is provided by Android SDK. By default it is a slow emulator however there is a tweek you can do to make it faster:
Go and download HAXM from here
Go to your android sdk manager from your visual studio
Go down to Extras and install Intel x86 Emulator Accelerator
By doing this , now you can use the emulators which comes with Android SDK and they are great.

Genymotion for Visual Studio

I want to start write apps for android with Visual Studio. I used default emulator (Cordova),but it is too slow. So I find Genymotion, which is faster than Codova. However I can't connect Genymotion to Visual Studio, because Visual Studio use Cordova and I can't choose genymotion device in device list. So anyone know how to fix it.
PS Really sorry to my terrible english language.
I have the same setup, and my Visual Studio deployments were failing with no error, just failing to deploy to my GenyMotion Android.
So I discovered that there is a setting in GenyMotion (Settings -> ADB -> Use custom Android SDK) which MUST be the same as the SDK you are using in Visual Studio (Tools -> Options -> Xamarin Settings -> Android Settings -> Android SDK Location).
Once I changed this, it all "just worked"! And deployed super quick!!!
No, for the moment Genymotion don't have an official plugin for Visual Studio, but you can open a device in Genymotion (like normally we does) and in Visual Studio choose the option "Device" for to run your project (for default the option is "Ripple - Nexus (Galaxy)") and press Ctrl+f5, with this way Visual Studio detect the device open with Genymotion and run your application.
Guy was the same situation. I read an interesting way in this site Front In Brazil
Only start the emulator in GenyMotion and then run the command: ionic run android and be happy.
Note: My English is worse.

installation of xamarin with visual studio 2015

Now i am going on with the Installing Xamarin for Visual Studio 2015 Preview by following the below link:
http://www.infragistics.com/community/blogs/blagunas/archive/2014/11/14/installing-xamarin-for-visual-studio-2015-preview-side-by-side-with-visual-studio-2013.aspx
After downloading the xamarin for windows and restarted my visual studio 2015 but i can't able to see the Mobile Apps template.
I do not know where it's goes wrong and also tried with by Go to Add/Remove programs and search for Xamarin
and change for visula studio 2015.
If any one have idea about this can please help to sove this issue.
Do you have Visual Studio 2013 already installed?
Is so go to Control Panel, select Xamarin and press Change. In Xamarin Setup make sure that Xamarin for Visual Studio 2015 is selected.
Don't install the recommended edition. And be aware what options you select in the auto installer. Sometimes if you uninstall it and again install, the app templates appear back, though weird. Try it.

how to run eclipse android emulator via visual studio

Hi is it possible to run or communicate eclipse android emulator via MS visual studio?
If yes please help me or state ways how to set up possible solution.
If you are using Mono for Andriod.
We can run the app as usual in Visual Studio by choosing
Debug > Start Without Debugging (or Start Debugging to run with the debugger attached).
or Simply press F5 in your “Mono for Android” Visual Studio project.
Visual Studio will launch the Select Device dialog Selecting Start emulator image in this dialog and it will open a list of available emulators:
When we choose the emulator we want to run and then click OK, Mono for Android launches the emulator. After it starts up, the emulator will appear in the Running devices list
From the Android documentation:
The recommended way to develop an Android application is to use Eclipse with the ADT plugin...
Added new Solution based on the comments
vs-android is intended to provide a collection of scripts and utilities to support integrated development of Android NDK C/C++ software under Microsoft Visual Studio.
Currently vs-android only works under Visual Studio 2010. Earlier versions lack the MSBuild integration with the C/C++ compilation systems.
The only required component is the Android NDK. Neither Cygwin, Java, nor the full Android SDK are needed to compile and link C/C++ code.

Categories

Resources