0

enter image description here

I have tried all solutions on the internet and everywhere but nothing works so if someone can help me to solve this issue and this issue occurs when i try to make build for my Flutter App project

this is my yaml file

Saif Khan
  • 116
  • 8

2 Answers2

1

It looks like you might be using an old version of the plugin_platform_interface package.

you should have a line like this in your pubspec.yaml file:

dependencies:
  plugin_platform_interface: ^2.0.1

note that according to the instructions on pub.dev this package only supports null safety in version 2.0 and above. see more at

plugin_platform_interface version log

PaulV
  • 61
  • 4
  • where should i add this in yaml? it says this – Saif Khan Sep 01 '21 at 13:12
  • you should already have a line in your YAML file that has "plugin_platform_interface:" in it. After the ":" you need to make sure the version number that your programme is dependent on is above 2.0. I can't see your YAML file in your post. – PaulV Sep 01 '21 at 13:28
  • alternatively you can add the dependency to your YAML file without having to edit it manually by using the following command in terminal:- $ flutter pub add plugin_platform_interface – PaulV Sep 01 '21 at 13:31
  • don't forget to run "$ flutter pub upgrade" to make sure you get the latest version included in your build. – PaulV Sep 01 '21 at 13:32
0
flutter run --no-sound-null-safety

Check this: Cannot run with sound null safety because dependencies don't support null safety

Nicolás López
  • 430
  • 2
  • 8