示例消息
error XA4216: The deployment target '19' is not supported (the minimum is '24'). Please increase the $(SupportedOSPlatformVersion) property value in your project file.
error XA4216: The deployment target '19' is not supported (the minimum is '24'). Please increase (or remove) the //uses-sdk/@android:minSdkVersion value in your AndroidManifest.xml.
warning XA4216: AndroidManifest.xml //uses-sdk/@android:targetSdkVersion '19' is less than API-24, this configuration is not supported.
问题
此错误或警告表明你的应用程序将以不受支持的 API 级别为目标。
解决方案
编辑 csproj 并增加“$(SupportedOSPlatformVersion)”属性值,使其大于或等于最低支持版本。
或
编辑 AndroidManifest.xml 并删除 //uses-sdk/@android:minSdkVersion,或将其增加到大于或等于支持的最低版本。
或
编辑 AndroidManifest.xml 并删除 //uses-sdk/@android:targetSdkVersion,或将其增加到大于或等于支持的最低版本。
.NET 11 需要 Android API 级别 24 或更高版本。
$(SupportedOSPlatformVersion) 和清单 minSdkVersion 描述了应用程序的部署最小值。
清单 targetSdkVersion 是独立的,也可能受目标框架和 Google Play 策略的影响。