I keep getting this error when I try to upload my FIRST build to the alpha channel.
I even made a new app in developer.oculus.com with zero builds submitted, created a new keystore and rebuilt, resigned and resubmitted it and I keep getting that error. Whether I use the CLI or the GUI (via developer.oculus.com), it uploads and during step 2 (validating) it fails with that error.
In my player settings under "Other Settings", I have Version* set to 0.1, and Bundle Version Code set to 1.
Full steps I took:
1. Create new keystore:
keytool -genkey -keystore ta.keystore -alias ta -keyalg RSA -validity 36500
2. Set this keystore in Unity under Player Settings -> Publishing Settings -> Check "Use Existing Keystore" -> Browse button -> selected ta.keystore. Then under the "Key" section, clicked dropdown and selected "ta" alias and entered password.
3. Built app called abuild1.apk
4. Signed the apk via:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore C:\MyApp\ta.keystore C:\MyApp\bin\abuild1.apk ta
5. Uploaded using the CLI tool:
ovr-platform-util.exe upload-mobile-build --app_id XXXXXX --app_secret XXXXXXX --apk C:\MyApp\bin\abuild1.apk --channel Alpha --notes "First"
Then it uploads and during step 2 I get the following complete error:
An APK with a higher version code has previously been uploaded (code: 11, channels: 1). The version code must be monotonically increasing, and the provided code is too low (alpha). If you are trying to downgrade to a previous build, update the version code before proceeding to ensure functionality across Oculus devices.
All I want to do is upload my first build so I can test some features.