Dela via


.NET för Android-fel XA0035

Problematik

.NET för Android kunde inte fastställa programmets android-mål-API:er enligt filspecifikationen .csproj .

Lösning

Öppna projektfilen i Visual Studio eller någon annan textredigerare och kontrollera att alla värden i RuntimeIdentifiers egenskapen MSBuild är giltiga:

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

För mer information, se Microsoft-dokumentationen om körningsidentifierare.

Exempelmeddelanden

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.