Sdílet prostřednictvím


Chyba .NET pro Android XA1036

Ukázkové zprávy

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).

Problém

Tato chyba značí neshodu mezi elementem minSdkVersion nastaveným v AndroidManifest.xml a hodnotou vlastnosti $(SupportedOSPlatformVersion) v souboru projektu.

Řešení

Zvyšte hodnotu //uses-sdk/@android:minSdkVersion v AndroidManifest.xml tak, aby odpovídala hodnotě $(SupportedOSPlatformVersion), nebo ji odeberte //uses-sdk/@android:minSdkVersion z AndroidManifest.xml a nastavte $(SupportedOSPlatformVersion) v souboru projektu, pokud není nastavená.