Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with build version when publishing APK to Play Store

I've seen lots of answers but most of them are out of date. I'm trying to publish my android application to Play Store using Azure DevOps pipelines.

I'm facing an issue with the version code of the APK. Getting the following error:

APK specifies a version code that has already been used

Anyone have an idea about how I can increment the version code and name that exist in AndroidManifest.xml. I think we should change it in the CI pipeline.

Here's my CD pipeline:

enter image description here

like image 807
Mohamad Mousheimish Avatar asked Nov 30 '25 02:11

Mohamad Mousheimish


1 Answers

For every update that you add for your exisiting app, u will have to increment its value.

To do so:

  1. Open your build.gradle (Module: app)
  2. Increase the Version Code by 1 to your exisiting version code. ( This should be a positive integer number only).
  3. Also, change your Version Name to show differentiation.
like image 192
Prajwal Waingankar Avatar answered Dec 02 '25 16:12

Prajwal Waingankar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!