.NET for Android error XA0035

Issue

.NET for Android was not able to determine the application's target Android ABIs as specified by the .csproj file.

Solution

Open the project file in Visual Studio or another text editor and make sure all of the values in the RuntimeIdentifiers MSBuild property are valid:

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

See the Microsoft documentation on runtime identifiers for more information.

Example messages

error XA0035: Unable to determine the Android ABI from the value 'XYZ'. Edit the project file in a text editor and set the 'RuntimeIdentifiers' MSBuild property to contain only valid identifiers for the Android platform.