0

I'm encountering the following error in my Flutter project (Android Studio):

Error: Cannot run with sound null safety, because the following dependencies don't support null safety:

* package:fl_chart
* package:equatable
* package:path_drawing
* package:path_parsing

For solutions, see https://dart.dev/go/unsound-null-safety

How can I resolve this issue and run my project?

1
  • 1
    Take a backup of the project and run flutter pub upgrade in terminal. or add latest versions of these packages in pubspec.yaml file Commented Jun 8, 2022 at 4:37

1 Answer 1

1

When I search pub.dev for the packages, I see all the mentioned packages support null safety. You just need upgrade the version of packages. flutter pub upgrade --major-versions

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.