I am trying to update my app whose previous version is already in publish. I am getting error below:
I guess my problem is different from answers here and here
In previous release i have published apk using flutter command flutter build apk --split-per-abi
. But now in this release i am trying to update app using flutter build appbundle
Here in the below picture when i generated bundle it gives version code to bundle from pubspec.yaml
But here now i see that when i generated apks(not bundle) play console generated version codes like 1032, 2032, 4032:
So i guess problem is there. bundle version code 38 is definitely smaller than apks' 1032. How can i solve that? Or am i wrong?
Google Play does not generate version codes. The version codes 1032, 2032, 4032, ... have been set by you (I imagine through a Gradle plugin extension that used this version code scheme for the different ABIs).
Because you can never publish an app with a version lower than one already published, you should now use versionCodes greater than previous ones, hence your App Bundle should now have version 4033 or higher.