I started getting this error immediately I ran flutter pub upgrade, I have tried the solutions
CodePudding user response:
Yes its most probably you are using a package that is not yet compatible or does not match with required compileSdk version. To identify which package is causing the issue, maybe you can try to revert your pubspec to when it was working and upgrade your packages one by one. I'm also using M1 Macbook, so if you need further help, let me know.
CodePudding user response:
Try this,
from top menu bar select Tools -> Flutter -> Flutter clean
Open pubspec.yaml & execute pub get & run again your code