A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Thank you @Sreenivasan, Sreejith for your question.
Based on the error message, the dependency's minimum SDK requirement appears to be the blocking factor here. If a dependency declares a minimum SDK version of 23, the application cannot be built with a lower minimum SDK version, such as 21, unless that dependency requirement is addressed.
With that in mind, I suggest the following options:
- Check whether an earlier version of the dependency or package is available that supports a lower minimum SDK version.
- Another approach, although advanced and generally not recommended, would be to inspect the dependency itself and determine whether its minimum SDK requirement can be reduced. Depending on the package, it may be possible to modify or remove functionality that depends on API level 23 so that it can be used with a lower minimum SDK version.
- Alternatively, you could look for alternative packages that provide similar functionality while still supporting API level 21.
As a side note on the manifest configuration you tried, tools:overrideLibrary only suppresses the check performed during manifest merging. It does not make the library itself compatible with API levels 21 and 22, and the tooling notes that forcing usage in this way may lead to runtime failures on those devices. For this reason, I would recommend setting it aside and focusing on the options below instead, as they address the dependency requirement itself rather than bypassing the check.
Regarding your second question, the range of devices that can install the application is determined by the effective minimum SDK version, so if the dependency requirement cannot be lowered through one of the options above, those devices would fall outside the supported range, and there is unfortunately no configuration on the .NET MAUI side that would keep them supported.
One point that may be worth evaluating is whether the dependency is used only for a specific feature, as it may be possible to isolate that functionality so that the rest of the application is not affected by its minimum SDK requirement.
In case you are also interested in how previous releases remain available to users on older devices, you may want to check the documentation on the Google Play side.
I hope this helps point you in the right direction. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guide for your confirmation.
Thank you.