skip to Main Content

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?

2

Answers


  1. Chosen as BEST ANSWER

    Just need to remove build folder from project root directory.


  2. run flutter clean before building your apk/bundle

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