Compartilhar via


Erro do .NET para Android XA1036

Mensagens de exemplo

error XA1036: AndroidManifest.xml //uses-sdk/@android:minSdkVersion '29' does not match the $(SupportedOSPlatformVersion) value '21' in the project file (if there is no $(SupportedOSPlatformVersion) value in the project file, then a default value has been assumed).
Either change the value in the AndroidManifest.xml to match the $(SupportedOSPlatformVersion) value, or remove the value in the AndroidManifest.xml (and add a $(SupportedOSPlatformVersion) value to the project file if it doesn't already exist).

Questão

Esse erro indica que você tem uma incompatibilidade entre o elemento minSdkVersion definido em seu AndroidManifest.xml e o valor da propriedade $(SupportedOSPlatformVersion) em seu arquivo de projeto.

Solução

Aumente o valor em //uses-sdk/@android:minSdkVersionAndroidManifest.xml para corresponder ao $(SupportedOSPlatformVersion) ou remova //uses-sdk/@android:minSdkVersion de AndroidManifest.xml e defina $(SupportedOSPlatformVersion) no arquivo de projeto se ele não estiver definido.