Flutter: upgrade the version code for play store : <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 everytime i get error on the playstore</p>

<blockquote>
  <p>You must use a different version code for your APK or your Android App Bundle because the code 1 is already assigned to another APK or Android App Bundle.</p>
</blockquote>
