Getting Visual Studio Android Emulator for Lollipop & marshmallow - xamarin

I've installed Visual studio 2015 & xamarin and I see that the visual studio emulator only has kitkat and nothing else.
Their website claims that lollipop is supported but I don't have the foggiest idea on how to get it.
EDIT: Should probably mention this, when I open up the visual studio emulator window I see the following error:
Unable to establish a connection to Internet. Only device profiles for acquired platforms are shown

In Visual Studio 2015, you can install, uninstall, and start device profiles using the Emulator Manager. Access the Emulator Manager by choosing Tools, then Visual Studio Emulator for Android.
By default, there are four pre-installed device profiles (KitKat and Lollipop phone/5" and tablet/7" configurations), as indicated by the white text and icons. Other profiles in the list will appear grayed out until you choose the Install Profile button and the installation completes. You can filter the list by API Level and click the details arrow on the bottom right-hand side of a profile to view its full configuration details.
Once you've installed the set of profiles that you'd like to target, you can start these new profiles directly from the manager by pressing the green Play button. They will also appear in the debug target dropdown menu in any Visual Studio cross-platform mobile project type.
Ref: MSDN

I fixed it, A spybot tool I installed to disabled some windows 10 stuff was blocking things needed for this tool, unblocked it and it works now.

Related

Microsoft visual studio doesn't show any android emulator or physical device for Xamarin project

I have a xamarin project and i want to debug it, but visual studio doesn't show any emulator or physical device.
this is the menu
I wanted to restart adb from tools > android but it's disabled. but when I open a non xamarin project (for example a web porject) this options is enabled.
I can see my device in cmd with command adb devices and in android studio, every thing is fine and I can deploy some java application to my phone.
do you have Any idea?
Update
I created new project and in this new project, every thing is fine and I can debug with my phone or emulators.
but in my existing project which I'm currently working on, there is no device in list.
It happened to me just now using vs 2019, to fix this, manually remove obj and bin folders restart vs, and that's all :)

Xamarin Native iOS breakpoints not getting hit VS2017

I cannot hit a breakpoint in VS when debugging any native iOS app through VS2017 Pro. I have trawled the Xamarin/Stack forums and seen this has been a problem in the past and I have tried the suggestions but they relate to a 3.xxx version of Xamarin. Even an out-the-box new project untouched except for placing a breakpoint still does not hit, the build server pops up the simulator and runs as expected. Android is fine
This was working, I have recently downgraded from Enterprise to Pro but think this may be a red herring. I have 2015/13 pro installed with the same problem.
Is this an issue build server side or the windows side? I get the following generated in my bin App.app, App.exe, App.pdb but no app.mdb i do get the referenced dll.mdb files.
Current vs setup...
Microsoft Visual Studio Professional 2017 (2)
Version 15.1 (26403.7) Release
VisualStudio.15.Release/15.1.0+26403.7
Microsoft .NET Framework
Version 4.6.01586
Installed Version: Professional
...
Visual Studio Tools for Universal Windows Apps 15.0.26403.07
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
Xamarin 4.4.0.34 (3f99c5a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android SDK 7.2.0.7 (b16fb82)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 10.8.0.174 (7656cc6)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
The Mac
Xamarin Studio 6.3
VS for Mac 7
See this similar answer: Xamarin iOS debugger not hitting breakpoints
Also, make sure you don't have a firewall blocking Port 10000.
I ran into something similar, and it turns out my debug settings for my physical device had some defaults that prevented debugging from working. This may not fix your issue, but you might want to at least check your project settings for a few things.
Under iOS Build I changed my Linker Behavior from Link All to Link Framework SDKs Only. Also, for some reason in a default debug profile, the Strip native debugging symbols option on that same page was checked. Make sure it's unchecked.
This one was already enabled for me but you should verify anyway: double check that on the page iOS Debug that Enable Debugging is checked.
I faced a similar issue but on Android application: I solved by uncheck the option "Code Optimization" from Project >> Options >> Build and set the DebugType to Full
Same here, windows 10, VS 2017 -> MAC -> iPhone
Somtimes I got Debug-Log and can hit breakpoints but mostly not.
A solution / workaround which at least works for me.
Problem:
Setup: Windows 10 with VS2017, Mac-Book, iPhone connected to Mac-Book.
Debug-Log / Breakpoint-Hitting seams to work sometimes (seldom) / non deterministic.
Solution / workaround:
Verify: In case no Debug-Log occurs (e.g. no "Loaded assembly:..." lines etc.) the "Choose Device" drop-down box in the "Tools >> iOS >> Device Log" window shows TWO times the name of the iOS-device.
Stop the debug and explicitly stop the app on the iOS-device (if necessary also delete it for re-deploy)
Via "Tools >> iOS >> Xamarin Agent" disconnect from your Mac and then reconnect again.
Verify: the "Choose Device" drop-down in the "Tools >> iOS >> Device Log" window now shows only ONE times the name of the iOS-device.
Debug the App - it now should work.
See also XamarinForum
Hope it also works for you.
Erdega

Windows 10 - How do I test touch events without a touchscreen?

I need to test my Windows app using touch events but don't have a touch screen available.
Microsoft.Windows.Simulator.exe
Located in C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Simulator\16.0\Microsoft.Windows.Simulator.exe
The Simulator has modes that allow for basic touch events using the mouse, as well as pinch-to-zoom, and 2 finger rotation. It simulates your current Windows machine so you can even open up your code in VS, run your app, and set breakpoints that would normally only hit when using touch events.
Edit: based on the comment of Luishg, you need to install both Visual Studio and the Visual Studio UWP package for the Simulator to be installed.
Microsoft.Windows.Simulator.exe is no longer part of Visual Studio 2022.
If you need simulator then install Visual Studio 2019 and UWP feature.
You can actually launch this from visual studio now:
https://learn.microsoft.com/en-us/visualstudio/debugger/run-windows-store-apps-in-the-simulator?view=vs-2019
Set the simulator as the target
To run your UWP app in the simulator, select Simulator from the drop-down list next to the Start Debugging button on the debugger Standard toolbar. This option is only available if your app's Target Platform Min. Version is less than or equal to the operating system on your development machine.
PS. mine didnt actually work first time I had to reboot my pc to get it working

Visual Studio forces to start WP emulator on website debugging

I have VS solution which is mix of Websites, Console Application and Windows Phone Apps.
When I select my website as a start up project, in the device selection it only appears Windows Phone Emulator Devices not Debug selection.
So when I hit F5 emulator pops-up which I do not want unless I select WP project.
Is there any setting I can apply it will not show WP device if I just want to debug Website?
In visual studio go to Build -> Configuration Manager, where all the projects in the solution will be listed. There is an option for the user to select which all projects needs to be selected for building and there you can select the only ones you need to build.

Zune software is not launched (WP7)

I installed VS 2010 Express + WP7 SDK, it worked perfectly. Now I need to use unit-tests, and installed VS 2010 Ultimate (and reinstalled WP7 SDK). WP7 plugin seems to be installed (there are WP7 project types in "New Project" dialog), but when I'm trying to launch my software for debug, VS says that "Error 1 Zune software is not launched. Retry after making sure that Zune software is launched.". WP7 emulator is already launched (and Zune too, but Zune says, that there is no device connected). Expression Blend works with emulator perfectly (it runs the emulator by itself). Where is a mistake?
It seems like Visual Studio tries to deploy to a device.
Did you select "Windows Phone 7 Emulator" in the "Target Deployment Device" dropdown?
First of all, make sure that you have the Standard toolbar visible. That's where you select the Target Device. To do this: View -> Toolbars -> Standard. Since Expression Blend detects the emulator, then there is a problem with Visual Studio, that tries to deploy to a device by default.
REMEMBER: Zune Software is not required to be running when you are deploying to an emulator.
Second, try to create a new Windows Phone 7 project and try deploying it from Visual Studio to see how it works.

Resources