Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-99900

Leading zeroes for Android app "versionCode" are being removed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Running Qt Creator 6.0.1 on Ubuntu Linux (latest LTS release). Using CMake.
    • Platform/s:
      Android

      Description

      Please look at this documentation page:

      https://doc.qt.io/qt-6/android-publishing-to-googleplay.html

       

      For the "Publishing single ABI bundles" section, it tells us how we should set the `QT_ANDROID_VERSION_CODE` for CMake so we can target mutiple ABIs.  Say if I set that variable to "03210", since I'm building for ARM v7 (32 Bit ARM) and .AAB file, it's putting the version code as "3210", not "03210".  In the `AndroidManifest.xml`, I see the correct version code (with the leading zero).  But when I uploaded the .AAB files to the Google Play console, they were missing that leading zero.  If you also find the `output-metadata.json` file (somewhere in the build output tree), you'll see it has a "versionCode" entry, but with the (incorrect) missing-leading-zero.

       

      I'm not sure if this is coming from Qt, or one of Google's/Android's tools.  An alternative versioning code scheme should be mentioned in the docs if this can't be fixed.

       

      I'm using an AndroidManifest.xml that's generated from Qt Creator, that has all of those `-- %% ...` lines in them for build generation.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qtandroidteam Qt Android Team
            Reporter:
            define-private-public Ben S
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Gerrit Reviews

                  There are no open Gerrit changes