Search Unity

Android Cloud Build used build number as bundle version code

Discussion in 'Unity Build Automation' started by smithmj5, Feb 6, 2020.

  1. smithmj5

    smithmj5

    Joined:
    May 24, 2013
    Posts:
    143
    A few days ago, Unity Cloud Build created an Android build for one of my games, and it mistakenly assigned the Unity Cloud Build build number as the Android bundle version code.

    I verified this by installing the apk that cloud build generated, and running this from a command line:

    Code (CSharp):
    1. adb shell dumpsys package my.package.name
    which showed "versionCode=314".

    This was for Android build #314 in Unity Cloud Build for my game.

    The actual bundle version code set in Unity was "1".

    I only caught this because the next build from today wouldn't install over top of build 314 due to INSTALL_FAILED_VERSION_DOWNGRADE, which seemed odd since I incremented the bundle version from 1 to 3.

    Anyone else encountered this?

    Happy to provide a project ID and build link.
     
  2. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
  3. smithmj5

    smithmj5

    Joined:
    May 24, 2013
    Posts:
    143
    I submitted a support ticket.

    I haven't seen the issue happen again since, but I will continue to check the version code of new Android builds, and will update if it occurs again.