Reputation: 77
Unsupported any local Android devices for my Blazor Maui Application. How to solve that? But, the Windows app has no problem.
Upvotes: 2
Views: 607
Reputation: 510
I was struggling with this for ages. It seems the settings for Android appear in two places. Under >Application and under >Android. Check under ">Application" and see if that fixes your problem. It did for me.
Upvotes: 1
Reputation: 34063
Looks like you're not targeting API 31? Right-click your .NET MAUI project and click Properties and look for these settings:
Alternatively, open your .NET MAUI project csproj file and look for any values that have to do with Android. For example:
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">23.0</SupportedOSPlatformVersion>
Make sure that you don't exclude API level 31 anywhere.
Upvotes: 2