Hello,
I am facing a bit of a weird issue upgrading an Android project made with unity version 5.6.3p4 to unity 2018.X.
I have an Android project that I made with unity version 5.6.3p4 and I am trying to upgrade the unity version by simply opening the old project with the new unity editor 2018.X. Following the steps, I allowed the auto API updater to update the obsolete APIs too.
Now the application version of my project is 3.1.2 and the bundle version is 40, but every time I build APK of the application, the Application version of the app gets set to 1.0 automatically, even when the Version and the Bundle-Version Code is set 3.1.2 and 40 in the android player settings. I saw the application version in Android Device → Settings → Installed Apps → {My app} details and I also printed a debug.log to see Application.version returning 1.0 in Android Studio logcat.
Now this happens even when I take out an android project export and then open it in Android Studio. The application version and bundle version code get set to 1.0. Now with Android Studio, I have an option to change the application version and bundle version code manually, but the issue is with the Internal Android build system in unity 2018.X.
This doesn’t seem to be a device specific issue as I have tested it with different android devices and the results are same. I have tested with a different combination of devices and unity version and have been doing it since past one week now. And with some analysis, I have noted that this issue is reproducible in unity version 2018.1.0, 2018.2.0 and 2018.2.8 android build. Also, this is the reason I am using the notation “2018.X”. I also noted that this issue is NOT reproducible in unity version 2017.4.0 or older versions.
Now, is this a unity’s internal android build issue or am I doing anything wrong here?
Please note: I have raised a request with the unity support team, but they asked me to raise a question in this forum first and get some pointers to a cause of the issue.
Also Note: I even tried switching the target build platform back and forth from PC, Mac & Linux to Android, but the issue still persists.
Guys if you are able to replicate the issue then kindly confirm it here, or in case if you were able to successfully migrate from unity version 5.6.3p4 to unity version 2018.X then please let me know the steps you followed for the same.
Kindly help! Thanks.