skip to Main Content

I am new to flutter and I had this problem, I have seen everything but nothing has helped me. my project was working normally before but suddenly it started to give me some warnings in the console and it doesn’t let me start my project.

enter image description here

if i upload the sdk version, it still won’t let me start the project, attached is an image of my flutter doctor.
enter image description here

I need to fix this error as no one has been able to help me with this and I am at a standstill in relation to my work.

2

Answers


  1. I have faced similar errors before, and often it is because of package updates. You should verify your pubspec.lock file. If you have your code in Github, you can check the changes to your file and then do a rollback if necessary, also can verify the versions of your dependencies inside that file. If that is the problem, you can hardcode your package versions in your pubspec.yaml file. I hope this helps. Feel free to leave a comment.

    Login or Signup to reply.
  2. As I can see, you are using an old version of the firebase_core plugin. Your issue can be solved by updating to the latest version. Please refer to this link for more information: https://github.com/firebase/flutterfire/issues/9806.

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