Build Number throwing error after upgrading to Flutter 3.7.3

163 Views Asked by At

My Project was on flutter 2.5.3 and we decdied to upgrade code base to flutter latest version (3.7.3) . My version from pubspec.yaml used to be 1.2+10 after upgrading flutter. When I run flutter pub get or any other pub related command i am getting an error Invalid version number: Could not parse 1.2+10.

Here is pubspec.yaml enter image description here

Please help me fixing the issue. Thanks in advance :)

1

There are 1 best solutions below

4
Ivo On

To quote from the documentation:

A version number is three numbers separated by dots, like 1.2.43 followed by an optional build number separated by a +.

You only have two. So maybe change it to 1.2.0+10