'flutter don't use plugin versions that require android 31

I have an essential plugin that hasn't been updated in a year. I made the mistake of updating flutter, and now, when I try to build, it is telling me about a whole list of plugins that require android 31. Unfortunately, android 31 breaks the one plugin that I must use. Caret notation in the pubspec.yaml is funny because the documentation says it's supposed to choose a version of the package that works with the dependencies, but it's just not doing that.



Solution 1:[1]

Run flutter downgrade in command line or reinstall your old version.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 fsbelinda