Поделиться через


Ошибка .NET для Android XA1036

Примеры сообщений

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

Проблема

Эта ошибка указывает на несоответствие между элементом minSdkVersion в AndroidManifest.xml и значением свойства $(SupportedOSPlatformVersion) в файле проекта.

Решение

Увеличьте значение //uses-sdk/@android:minSdkVersion в AndroidManifest.xml до $(SupportedOSPlatformVersion) или удалите //uses-sdk/@android:minSdkVersion из AndroidManifest.xml и задайте $(SupportedOSPlatformVersion) в файле проекта, если оно не установлено.