sosnus
sosnus

Reputation: 1380

Flutter appbundle version code error. Version code 20220304 has already been used. Try another version code

I try build new release for google play, so I change version at file pubspec.yaml from 0.1.1+20220304 to 0.1.4+20220307, but after uploading, GPlay console return error: Version code 20220304 has already been used. Try another version code. I do not have hardcoded number 20220304 anywhere. I use app version straight from pubspec.yaml: version: 0.1.4+20220307 Why during build tools get old app version?

Upvotes: 1

Views: 498

Answers (2)

Andreas Hadjithoma
Andreas Hadjithoma

Reputation: 660

run flutter clean before building your apk/bundle

Upvotes: 0

sosnus
sosnus

Reputation: 1380

Just need to remove build folder from project root directory.

Upvotes: 1

Related Questions