Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with version number in Flutter / pubspec.yaml

I built an app with

version: 2.0.2+20

in the pubspec.yaml

and everything (distribution and GooglePlay) worked.

Changing it to

version: 2.0.3+1

I get the error in the Goolge Play Console

Version code 1 has already been used. Try another version code.

I thought I can have a release "2.0.1+1" and later "2.0.2+1" and so on. Am I wrong? And if not - what couöd cause my problem?

like image 580
derChris Avatar asked Oct 22 '25 19:10

derChris


1 Answers

You should increment version code always as it is used to identify and push updates internally. You can use any version name which is shown on the play store listing but must increment the number following the plus sign, that is version code.

version: 2.0.3+21
like image 145
Varun Kumar Avatar answered Oct 24 '25 09:10

Varun Kumar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!