skip to Main Content

When running the flutter build apk command, I am getting the following error:

Pubspec.yaml
enter image description here

Error code:
enter image description here

2

Answers


  1. Open your pubspec.yaml

    search for this:

    Pubspec

    Then change the SDK to: ">=2.17.5 <3.0.0"

    Login or Signup to reply.
  2. You can write

    flutter upgrade

    command in terminal to update flutter sdk

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