System.Exception: Android bundle version code should be less than 100000

Hi,

I am building for android and my last build, which I was successfully able to release on google play has versions (generated by unity):
1200089, 1100089

Now I increased the bundle version by 1 from the project settings as such: 1000090.
To me it seems that unity ads 100,000 to every version. Last time it worked, but not anymore.

After I run the build, I get this error:

Now I am not able to make a build at all due to this version. How to resolve this?

I found this related to the topic, but I was not able to resolve it based on that information.

I found a way how to resolve this:

You can build the two apks for each target architecture separately and provide a custom bundle version code.

To do that:

  1. From the project settings disable Split target APKsā€¦
  2. Select only one target architecture and put the desired version code
  3. Build
  4. Repeat the process 2-3 for the second target architecture

It is slow, coz have to build twice but works.