skip to Main Content

I have this error when I try to debbug my app, I used to debbug my app with no sound null safety, I update flutter and it doesnt work now, how can I resolve it?
enter image description here

enter image description here

I have this error when I try to debbug my app, I used to debbug my app with no sound null safety, I update flutter and it doesnt work now, how can I resolve it?

2

Answers


  1. As of Dart 3.0 there is no support for no sound null safety. You can do flutter downgrade to go back to the last version you had. But I really suggest you try and get your code up to date to null safety since it helps a lot while coding.

    Login or Signup to reply.
  2. If you are using android studio, go configurations, and delete the arg "no-sound-null-safety". enter image description here

    enter image description here

    You might need to run flutter pub upgrade –major-versions, to upgrade all packages, and after that, you might need to amend the code, to make it work with the latest dart, flutter sdk, and packages breaking changes. Some things might be deprecated, or removed at all. If you have an error on a class name, you have to see from which package it was, and go to readme or changelog sections and see the breaking changes for that package.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search