Edit

.NET for Android warning XA0036

Issue

The $(AndroidSupportedAbis) MSBuild property is no longer supported in .NET 6 and higher.

Solution

Open the project file in Visual Studio or another text editor and remove <AndroidSupportedAbis/>. Use the RuntimeIdentifiers MSBuild property instead:

<PropertyGroup>
  <RuntimeIdentifiers>android-arm;android-arm64;android-x64</RuntimeIdentifiers>
</PropertyGroup>

In .NET 11, CoreCLR supports these three RIDs. Android NativeAOT is experimental and supports the same set. The android-x86 RID was available through the .NET 10 Mono toolchain but is not available in .NET 11.

See the Microsoft documentation on runtime identifiers for more information.

Example messages

warning XA0036: The 'AndroidSupportedAbis' MSBuild property is no longer supported. Edit the project file in a text editor, remove any uses of 'AndroidSupportedAbis', and use the 'RuntimeIdentifiers' MSBuild property instead.