Search code examples
androidunity-game-engineapkoculusgear-vr

I am incrementing, but still get "An APK with this package name and version code already exists."


first post for me. I posted this to Oculus forums also.

I am trying to update my Alpha build with a second APK but am receiving the following error:

An APK with this package name and version code already exists. Please increment the version code and then resubmit your update.

My previously uploaded Alpha has a version of 1.0 and version code 1.

My new Android Manifest has the following:

android:versionCode="2" android:versionName="2.0"

so I have incremented both the version name and the version code but still get the error. Am I missing something? Thanks


Solution

  • So it turns out that you also have to set the version number and code in Unity under Edit -> Project Settings -> Player -> Other. I was just setting the version number in the Manifest XML itself and hadn't heard of this setting in Unity.