.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-x86;android-x64</RuntimeIdentifiers>
</PropertyGroup>

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.