.NET for Android warning XA0113

Issue

As of November 1st 2021, new applications and application updates uploaded to the Google Play store need to target v11.0 (API 30) or above.

Solution

If you are seeing this warning, you should update the $(TargetFrameworkVersion) of your projects to be v11.0 or above.

If you are not targeting the Google Play store and wish to hide these warnings, you can make use of the /warnasmessage:XA0113 command line switch. Alternatively, add

<PropertyGroup>
    <MSBuildWarningsAsMessages>XA0113</MSBuildWarningsAsMessages>
</PropertyGroup>

to your .csproj file.

Google Play's target API level requirement Target API level requirements for the Play Console