Search code examples
androidandroid-manifestpublishpublishing

Can't update VersionCode


I have published an app on Google Play 15 days ago, I made some modifications to the app and now I want to publish it again .

When I tried to upload the apk without changing the VersionCode="1" the Google Developers Console gave me an Error: App with versionCode="1" already exist.

Then I tried to change the version code to 2 and export the apk, unfortunately the VersionCode reverts back to "1" always.

Please help out with this issue.


Solution

  • Make sure you are NOT using the bin/manifest as this is the built one, and will constantly be changed on build/export.

    Use the proper manifest which can be found in the root directory of the project.

    I too did this for a while by accidently opening the bin folder and was baffled.