Mohamad Mousheimish
Mohamad Mousheimish

Reputation: 1695

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

Upvotes: 3

Views: 602

Answers (1)

Prajwal Waingankar
Prajwal Waingankar

Reputation: 2710

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.

Upvotes: 2

Related Questions