Hello,
This error is expected. According to MAUI official documentation, Android APIs lower than 21 are not supported.
.NET Multi-platform App UI (.NET MAUI) apps can be written for the following platforms:
Android 5.0 (API 21) or higher. iOS 11 or higher, using the latest release of Xcode. macOS 10.15 or higher, using Mac Catalyst. Windows 11 and Windows 10 version 1809 or higher, using Windows UI Library (WinUI) 3. .NET MAUI Blazor apps have the following additional platform requirements: Android 7.0 (API 24) or higher is required iOS 14 or higher is required. macOS 11 or higher, using Mac Catalyst.
Therefore, you cannot set the minimum sdkVersion to 19.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.