Hazem soussi
Hazem soussi

Reputation: 1

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

HOPE YOU GO VERY WELL !!

I'm currently working on a control pad pannel for a robot control i'm working for the flutter mobile part so than i'm facing this error :

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

For solutions, see https://dart.dev/go/unsound-null-safety lib/main.dart:77:5: Warning: Operand of null-aware operation '?.' has type 'StreamSubscription' w hich excludes null.

FAILURE: Build failed with an exception. flutter error screenshot

i really need your help

Thanks!

Upvotes: 0

Views: 3029

Answers (2)

Dalitso Kasonde
Dalitso Kasonde

Reputation: 1

To run your project with --no-sound-null-safety add this line your main.dart file in top(first line) with comment..

// @dart=2.9

then run your project.

To read more : Reference

Upvotes: 0

SHUBHAM SONI
SHUBHAM SONI

Reputation: 111

try this solution on Android Studio

  1. GO Run-> Edit Configurations.
  2. Add on this line to Additional Run args

--no-sound-null-safety

  1. APPLY
  2. OK

enter image description here

Upvotes: 2

Related Questions