maui: [Bug] [Android] [MAUI Blazor] Crash on Android 5 device/emulator

Description

Default MAUI Blazor app crashes on Android with following exception. image

Steps to Reproduce

  1. Run dotnet new maui-blazor
  2. Create emulator with API 21 image
  3. Run in Debug

Actual Behavior

Crash.

Basic Information

  • Version with issue: MAUI preview 9
  • IDE: Visual Studio 2022 preview 5
  • Platform Target Frameworks:
    • Android: SDK 21

Workaround

Not aware of any.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (10 by maintainers)

Most upvoted comments

Google’s requirement is API 30 for the API to build against (the target API), there are no requirements for what API level to run on and net6.0-android should support API level 21. This min number will probably be bumped up by 1 each year but for now it is 21.

Anyway, I’m not too invested into this myself. I just thought I would offer sum ideas.