Share via


Xamarin.Android 12.1 Release Notes

| GitHub | Developer Community | System requirements | Blogs |

Installing

Xamarin.Android 12.1 releases are distributed as part of Visual Studio 2022 17.0.

What's new in Xamarin.Android 12.1

Xamarin.Android 12.1 releases

Xamarin.Android version 12.1.0.5

Released November 8, 2021, included in Visual Studio 2022 version 17.0.

Application and library build and deployment

Application behavior on device and emulator

  • Ongoing attempts to optimize process startup (#6188, #6159)

  • Fix ArgumentException from the <GenerateCompressedAssembliesNativeSourceFiles/> task. (#6023)

  • Fix SIGSEGV when using Java.Util.Concurrent.Executors. (#6211, #6223)

.NET 6 Changes

.NET 6 API Changes

  • The [Android.LinkerSafe] and [System.Preserve] attributes are obsolete. (#5639, #6054, #5664, #6129)

.NET 6 Build Changes

  • Add a new $(AndroidGenerateResourceDesigner) MSBuild property. (#6198, #6224)

  • Condtionally add generator\**\*.cs to @(Compile). (#6280, #6291)

  • When both $(ApplicationId) and the /manifest/@package attribute within AndroidManifest.xml values are specified, the AndroidManifest.xml value takes priority. (#6302, #6304)

  • Rework $(ApplicationVersion) and $(ApplicationDisplayVersion) semantics. (#6139)

  • Fix binding generator for implicitly added .jar files. (#6281)

  • Add support for AOT. (#6052, #5539)

  • Add support for consuming AOT profiles. (#6053, #6171)

  • Add support for using LLVM with AOT. (#6157)

  • Release builds default to creating .aab files. (#6059, #6087)

  • Set $(UseSystemResourceKeys)=true only when linking. (#6185, #6181)

  • Allow the $(SupportedPlatformOSVersion) MSBuild property to set //uses-sdk/@android:minSdkVersion. (#6111)

  • Set $(EnableSingleFileAnalyzer)=True by default. (#5943, #5989)

  • Support *.runtimeconfig.json files. (#6009)

  • Fix support for using @(PackageReference) with System.* packages. (#6043)

  • Binding projects enable C#8 features by default. (#4657, #6066)

  • When $(UserInterpreter)=true, DOTNET_MODIFIABLE_ASSEMBLIES=Debug is set. (#6016, #6027)

  • Fix XAGJS7009 / InvalidOperationException from the <GenerateJavaStubs/> task when ActivityAttribute.Exported is true. (#6284, #6290)

.NET 6 Runtime Changes

  • EventPipe Tracing is now supported (#6022).

  • Support [Java.Interop.ExportAttribute]. (#6235)

  • Add support for AssemblyLoadContext. (#5940)

  • XA_TLS_PROVIDER environment variable is no longer set. (#6140, #6182)

Notable Issues Fixed

Thank you

A big Thank You! to community members who contributed improvements in this release

Feedback welcome

Your feedback is important to us. If there are any problems with this release, check our GitHub Issues, Xamarin.Android Community Forums and Visual Studio Developer Community for existing issues. For new issues within the Xamarin.Android SDK, please report a GitHub Issue. For general Xamarin.Android experience issues, let us know via the Report a Problem option found in your favorite IDE under Help > Report a Problem.

Open source

Xamarin.Android 12.1 is based on the open-source Xamarin.Android repositories: