Xamarin Android Player For Mac

Jun 22, 2018 By the end of this article, you will have a working Xamarin.Android installation integrated into Visual Studio for Mac, and you'll be ready to start building your first Xamarin.Android application. Android SDK Setup. Visual Studio includes an Android SDK Manager that replaces Google's standalone Android SDK Manager. Jul 17, 2021 Xamarin Android Player has deep integration with Visual Studio and Xamarin Studio and a native user interface on both Mac & Windows. Running Android on an x86 virtual machine using hardware accelerated virtualization and OpenGL, Xamarin Android Player is significantly faster than the stock Android Emulator. Apr 04, 2021 Xamarin Android Player has deep integration with Visual Studio and Xamarin Studio and a native user interface on both Mac & Windows. Running Android on an x86 virtual machine using hardware accelerated virtualization and OpenGL, Xamarin Android Player is significantly faster than the stock Android Emulator. Xamarin lets you develop fully native Mac apps in C# and.NET using the very same macOS APIs as you would for Objective-C or Swift projects. You can either create your user interfaces directly in C# code, or, thanks to Xamarin's direct integration with Xcode, you can use Xcode's Interface Builder.

-->

XAML Hot Reload plugs into your existing workflow to increase your productivity and save you time. Without XAML Hot Reload, you have to build and deploy your app every time you want to see a XAML change. With Hot Reload, when you save your XAML file the changes are reflected live in your running app. In addition, your navigation state and data will be maintained, enabling you to quickly iterate on your UI without losing your place in the app. Therefore, with XAML Hot Reload, you'll spend less time rebuilding and deploying your apps to validate UI changes.

Note

If you're writing a native UWP or WPF app, not using Xamarin.Forms, see XAML Hot Reload for UWP and WPF.

System requirements

IDE/FrameworkMinimum Version Required
Visual Studio 201916.9 for changes only mode, 16.4 for full page mode
Visual Studio 2019 for Mac8.9 for changes only mode, 8.4 for full page mode
Xamarin.Forms5.0.0.2012 for changes only mode; 4.1 for full page mode

Enable XAML Hot Reload for Xamarin.Forms

Download xamarin android player for mac

If you are starting from a template, XAML Hot Reload is on by default and the project is configured to work with no additional setup. Debug your Android, iOS, or UWP app on an emulator or physical device and change your XAML to trigger a XAML Hot Reload.

If you're working from an existing Xamarin.Forms solution, no additional installation is required to use XAML Hot Reload, but you might have to double check your configuration to ensure the best experience. First, enable it in your IDE settings:

  • On Windows, check the Enable XAML Hot Reload checkbox (and the required platforms) at Tools > Options > Debugging > Hot Reload.
    • In earlier versions of Visual Studio 2019, the checkbox is at Tools > Options > Xamarin > Hot Reload.
  • On Mac, check the Enable Xamarin Hot Reload checkbox at Visual Studio > Preferences > Tools for Xamarin > XAML Hot Reload.
    • In earlier versions of Visual Studio for Mac, the checkbox is at Visual Studio > Preferences > Projects > Xamarin Hot Reload.

Then, in your Android and iOS build settings, check that the Linker is set to 'Don't Link' or 'Link None'. To use XAML Hot Reload with a physical iOS device, you also have to check Enable the Mono interpreter (Visual Studio 16.4 and above) or add --interpreter to your Additional mtouch args (Visual Studio 16.3 and below).

You can use the following flowchart to check your existing project's setup for use with XAML Hot Reload:

Hot Reload modes

XAML Hot Reload can work in two different modes - the newer changes only mode and the older full page mode.

From Visual Studio 16.9 and Visual Studio for Mac 8.9, the default behavior is for changes only mode to be used for all apps that use Xamarin.Forms 5.0 or newer. For older versions of Xamarin.Forms, full page mode is used. However, you can force use of full page mode for allapps in the Hot Reload IDE settings (Tools > Options > Debugging > Hot Reload on Windows or Visual Studio > Preferences > Tools for Xamarin > XAML Hot Reload on Mac).

Changes only mode parses the XAML to see exactly what changed when you make an edit, and sends just those changes to the running app. This is the same technology used for WPF and UWP Hot Reload. It preserves UI state, since it doesn't recreate the UI for the full page, just updating changed properties on controls affected by edits. Changes only mode also enables use of the Live Visual Tree.

By default, with changes only mode you don't need to save your file to see the changes - updates are applied immediately, as you type.However, you can change this behavior to update only on file save. This can be accomplished by checking the Apply XAML Hot Reload on document save checkbox (currently only available on Windows) in the Hot Reload IDE settings. Only updating on document save can sometimes be useful if you make bigger XAML updates and don't wish them to be displayed until they are complete.

Full page mode sends the full XAML file to the running app after you makes edits and save. The running app then reloads the page, recreating its controls - you'll see the UI refresh.

Changes only mode is the future of Hot Reload and we recommend using it whenever possible. It's fast, preserves UI state, and supports Live Visual Tree. Full page mode is still provided for apps that haven't yet been updated to Xamarin.Forms 5.0.

Note

You'll need to restart the debug session when switching modes.

XAML errors

Changes only mode: If you make a change the Hot Reload XAML parser sees as invalid, it will showthe error underlined in the editor and include it in the errors window. These Hot Reload errors have an error code starting with 'XHR' (for XAML Hot Reload). If there are any such errors on the page, Hot Reloadwon't apply changes, even if made on other parts of the page. Fix all the errors for Hot Reload to start working again for the page.

Full page mode: If you make a change that XAML Hot Reload can't reload, it will showthe error underlined in the editor and include it in the errors window. These changes, known as rude edits, include mistyping your XAML or wiring a control to an event handler that doesn't exist. Even with a rude edit, you can continue to reload without restarting the app - make another change elsewhere in the XAML file and hit save. The rude edit won't be reloaded, but your other changes will continue to be applied.

Reload on multiple platforms at once

XAML Hot Reload supports simultaneous debugging in Visual Studio and Visual Studio for Mac. You can deploy an Android and an iOS target at the same time to see your changes reflected on both platforms at once. To debug on multiple platforms, see:

  • WindowsHow To: Set multiple startup projects
  • MacSet multiple startup projects

Known limitations

  • Xamarin.Forms targets beyond Android, iOS, and UWP (for example, macOS) aren't currently supported.
  • Use of [XamlCompilation(XamlCompilationOptions.Skip)], disabling XAML compilation, isn't supported and can cause issues with the Live Visual Tree.
  • You can't add, remove, or rename files or NuGet packages during a XAML Hot Reload session. If you add or remove a file or NuGet package, rebuild and redeploy your app to continue using XAML Hot Reload.
  • Set your linker to Don't Link or Link None for the best experience. The Link SDK only setting works most of the time, but it may fail in certain cases. Linker settings can be found in your Android and iOS build options.
  • Debugging on a physical iPhone requires the interpreter to use XAML Hot Reload. To do this, open the project settings, select the iOS Build tab, and ensure Enable the Mono interpreter setting is enabled. You may need to change the Platform option at the top of the property page to iPhone.
  • XAML Hot Reload can't reload C# code, including event handlers, custom controls, page code-behind, and additional classes.

Troubleshooting

  • Bring up the XAML Hot Reload output to see status messages, which can help in troubleshooting:
    • Windows: bring up Output with View > Output and select Xamarin Hot Reload under Show output from: at the top
    • Mac: hover over XAML Hot Reload in the status bar to show that pad
  • If XAML Hot Reload fails to initialize:
    • Update your Xamarin.Forms version.
    • Ensure you are on the latest version of the IDE.
    • Set your Android or iOS Linker settings to Don't Link in the project's build settings.
  • If nothing happens upon saving your XAML file, ensure that XAML Hot Reload is enabled in the IDE.
  • If you're debugging on a physical iPhone and your app becomes unresponsive, check that the interpreter is enabled. To turn it on, check Enable the Mono interpreter (Visual Studio 16.4/8.4 and up) or add --interpreter to the Additional mtouch arguments field (Visual Studio 16.3/8.3 and prior) in your iOS Build settings.

To report a bug, use Help > Send Feedback > Report a Problem on Windows, and Help > Report a Problem on Mac.

Related links

Xamarin Android Player For Mac

A light-weight and easy to use cross-platform audio player for Windows UWP/WPF, Xamarin.iOS, Xamarin.Android, Xamarin.Mac, Xamarin.tvOS, Tizen and Xamarin.Forms. Load wav and mp3 files from any location including a shared library. Works well for sound effects or music. Multiple instances can be instantiated to play multiple sources simultaniously.

Requires NuGet 2.8.3 or higher.

For projects that support PackageReference, copy this XML node into the project file to reference the package.
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Performance improvements and bug fixes

Dependencies

  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.0

    • NETStandard.Library(>= 1.6.1)
  • MonoAndroid 1.0

    • No dependencies.
  • Tizen 4.0

    • No dependencies.
  • UAP 1.0

    • No dependencies.
  • Xamarin.iOS 1.0

    • No dependencies.
  • Xamarin.Mac 2.0

    • No dependencies.
  • Xamarin.TVOS 0.0

    • No dependencies.

Xamarin Android Player For Mac

Used By

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Xam.Plugin.SimpleAudioPlayer:

PackageDownloads
TDNPGL.Views.Forms
LoggingLibrary.llh19
Awesome application logging utility

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on Xam.Plugin.SimpleAudioPlayer:

RepositoryStars
x360ce/x360ce
Primary repository for the x360ce library, front-end and tools.
roubachof/Sharpnado.Shadows
Add as many custom shadows (Color, Offset, Blur, Neumorphism) as you like to any Xamarin.Forms view (Android, iOS, UWP).
Kragrathea/TelloLib
aesalazar/AsteroidsWasm
Collection of applications based on a single C# .NET Standard project running in: Blazor Client (WebAssembly), Blazor Server, Electron, WPF, WinForms, Xamarin
adrianstevens/Xamarin-Plugins
Cross-platform Plugins for Xamarin, Xamarin.Forms and Windows

Version History

VersionDownloadsLast updated
1.5.0 4,555 7/17/2021
1.4.0 176,720 1/4/2020
1.3.1 89,274 7/23/2019
1.3.0 41,774 1/19/2019
1.2.1.1-beta 4,545 4/24/2018
1.2.0-beta 563 4/24/2018
1.1.0 67,421 4/13/2018
1.0.2 9,291 1/26/2018
1.0.1 9,212 10/12/2017
1.0.0-beta 901 10/4/2017
0.9.9.1-alpha 546 10/4/2017
0.9.9-alpha 523 9/30/2017
0.9.0 627 9/30/2017
0.8.2 1,068 4/22/2017
0.8.1-beta 682 4/10/2017
0.8.0-beta 644 4/9/2017
0.7.0 928 3/13/2017
0.6.0-beta 665 2/28/2017
0.5.0-beta 777 2/26/2017
0.4.1-beta 682 2/20/2017
0.3.0-alpha 765 2/17/2017
0.2.2-alpha 729 2/17/2017
0.2.1-alpha 940 2/16/2017
0.2.0-alpha 725 2/13/2017
0.1.0-alpha 774 1/19/2017
Show more