0

I started getting this error immediately I ran flutter pub upgrade, I have tried the solutions here but it is not working for me, I have also ran

  • Flutter clean
  • Flutter pub get
  • Deleted and install new flutter

any help will be really appreciated NOTE I'm using an M1 Pro MacBook.

enter image description here

enter image description here

enter image description here

Hamed
  • 5,867
  • 4
  • 32
  • 56

3 Answers3

0

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.

Aditya Arora
  • 351
  • 2
  • 7
0

Try this,

  1. from top menu bar select Tools -> Flutter -> Flutter clean

  2. Open pubspec.yaml & execute pub get & run again your code

Dharini
  • 700
  • 7
  • 20
0

Thanks guys for your help, I have finally solved the error from the accepted answer here