sudathG
sudathG

Reputation: 77

Unsupported local android devices for Blazor Maui Application

Unsupported any local Android devices for my Blazor Maui Application. How to solve that? But, the Windows app has no problem.

enter image description here

Upvotes: 2

Views: 607

Answers (2)

Ray
Ray

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.

enter image description here

Upvotes: 1

Gerald Versluis
Gerald Versluis

Reputation: 34063

Looks like you're not targeting API 31? Right-click your .NET MAUI project and click Properties and look for these settings:

Partial screenshot of the .NET MAUI project settings within Visual Studio 2022

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

Related Questions