Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

AndroidManifest.xml have wrong versionCode and versionName Unity 2018.3.6f1

Discussion in 'Editor & General Support' started by ShayKrainer, Mar 4, 2019.

  1. ShayKrainer


    Feb 19, 2019

    I've migrated a project from 2017.4 to the latest 2018.3. Not everything went a smooth sailing is an understatement.

    Anyhow, I'm trying to build for android with Facebook SDK (not quite sure if related) and when the build is finished and I look at the AndroidManifest.xml at ...\Temp\StagingArea the versions are "1" and "1.0" respectively.
    The package's name is correct and in code (with Application.version) it also returns the correct version from the PlayerSettings.

    In Build Settings, using gradle.
    No idea if those have anything to do with it in the Player Settings:
    minimum API level: 4.1 (API 16)
    target API level: 8.1 (API 27)
    scripting runtime version: .net 4.x equivalent
    scripting backend: mono
    API compatibility level: .net 4.x
    target architectors: ARMv7 & x86

    How do I fix it and/or is there a workaround? I'm suspecting this is a root problem for other bugs as well.

    Thanks ahead,