Flutter null safety plugin_platform_interface

Viewed 224

I have this error,

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

 - package:plugin_platform_interface

the problem is I didn't use this package and I don't have it in the dependencies or lib, so how to solve it?

1 Answers

Add this to your pubspec.yaml file and click/ run pub get. Then try to build again!

 plugin_platform_interface: ^2.1.2
Related