Android Manifest: incorrect version number since updating to 2017.4
I was previously using Unity 2017.3 and everything was working fine. I upgraded to 2017.4 in order to build with 64bit support, as will soon be required for Android games.
However now the AndroidManifest.xml file that is produced by the build has incorrect information for the version numbers (see below). Nothing has changed other than upgrading to 2017.4 (and changing the scripting backend to II2CPP in order to build with 64 bit libraries. I tried a mono build and it still resulted in the same issue).
Here is the info from the 2017.4 manifest (package name removed for this post):
android:versionCode="1"
android:versionName="1.0"
android:installLocation="0"
android:compileSdkVersion="28"
android:compileSdkVersionCodename="9"
package=""
platformBuildVersionCode="1"
platformBuildVersionName="1065353216.000000">
and here is the 2017.3 manifest:
android:versionCode="15"
android:versionName="0.6.1"
android:installLocation="0"
android:compileSdkVersion="28"
android:compileSdkVersionCodename="9"
package=""
platformBuildVersionCode="28"
platformBuildVersionName="9">
As you can see the 2017.4 build has set many of the version numbers to default values. The Unity player settings still has the correct values (15, 0.6.1, etc).
Any help in figuring out what is causing this (or where to start looking) would be hugely appreciated.
Answer by LuisRB-TheBreachStudios · Feb 04, 2019 at 04:29 PM
The manifest will override every setting you have written into. We had the version hardcoded there and for some reason or another now it was being not changed by Unity. To solve it we just removed every key that we don't want to be used by Unity and we let him to fill the rest.
Hope it helps.