title: Flutter: upgrade the version code for play store
body: <p>I have published an application on the play store with flutter, now I want to upload a new version of the application. I am trying to change the version code with:</p>
  <blockquote>
  <p>flutter build apk --build-name=1.0.2 --build-number=3</p>
  </blockquote>
  <p>or changing the local.properties like this</p>
  <pre><code> flutter.versionName=2.0.0
   flutter.versionCode=2
   flutter.buildMode=release
  </code></pre>
  <p>but every time I get an error on the play store</p>
  <blockquote>
  <p>You must use a different version code for your APK or your Android App Bundle because code 1 is already assigned to another APK or Android App Bundle.</p>
  </blockquote>