Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. single bundle (.aab file) with builds for multiple architectures
QtWS25 Last Chance

single bundle (.aab file) with builds for multiple architectures

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 5 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    barrett9h
    wrote on last edited by barrett9h
    #1

    Unless I'm mistaken, Play Console requires that you upload a single bundle (.aab file) supporting both armeabi_v7a and arm64_v8a.

    In QtCreator I can easily set up these two targets, but each build generates it's own .aab file.

    How can I generate a single bundle containing both builds?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Are you using newest Qt and newest Qt Creator? It definitely should work. I have not tried it recently but in the past it was building multiarch .aabs nicely.

      (Z(:^

      1 Reply Last reply
      1
      • B Offline
        B Offline
        barrett9h
        wrote on last edited by
        #3

        I'm certainly missing something obvious.

        I just removed everything and installed again from scratch.

        I am presented with bunch of "Kits" to choose, each for a specific architecture. There are four Android kits, armeabi_v7a, arm64_v8a, x86, and x86_64. Each generates a separate .aab bundle containing only that version.

        This documentation page have screenshots for CMake and QMake with options to add a list of architectures, but I don't see that in my QtCreator interface. I tried it on Linux and on MacOS, with the same results.

        I have just tried to create a project using the QBS build system (which I have not noticed before, and is not mentioned in the docs), and it does have the option to provide a list of architectures, but I gives a bunch of errors when I try to build (one of them is "Module Qt.quick could not be loaded").

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Hm, maybe something has changed in newest Qt Creator. Sorry, I don't know, I'm not set up for Android at the moment. This definitely used to work fine in the past :/

          (Z(:^

          1 Reply Last reply
          0
          • M Offline
            M Offline
            morte
            wrote on last edited by morte
            #5

            Same here, i don't figure out how to build multi-arch Android AAB package with Qt 6.2 and latest versions of QtCrator (QtCreator 5.0, QtCreator 6.0).

            Looks like its Qt 6 related issue: in Qt 5.15 we have 'Clang Multi-Abi' kit and able to select required ABIS and build multi-arch AAB:
            Qt 5.15

            In Qt 6.2 there separate kits for each ABI 'Clang arm64-v8a', 'Clang armeabi-v7a', 'Clang x86', 'Clang x86_64' each can generate single-arch AAB, but no way to build multi-arch AAB.
            Qt 6

            1 Reply Last reply
            0
            • J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              in Qt Creator, open the project tab (the one under debug)
              be9926b8-0325-4af4-b523-aa25aac90c69-image.png

              make sure, you selected a multi arch build:
              281b7574-603c-477f-973b-9fd370ef85bf-image.png

              on the right side in the build steps section, expand qmake row and select all architectures(ABI) you want to build for
              63c6ef6f-93f8-41f7-8e6f-f5597a367899-image.png

              under build android apk, make sure to check build aab
              a02afda7-fc32-454b-b483-0cb4b7572540-image.png

              that should be all you need to do


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              M 1 Reply Last reply
              0
              • J.HilkJ J.Hilk

                in Qt Creator, open the project tab (the one under debug)
                be9926b8-0325-4af4-b523-aa25aac90c69-image.png

                make sure, you selected a multi arch build:
                281b7574-603c-477f-973b-9fd370ef85bf-image.png

                on the right side in the build steps section, expand qmake row and select all architectures(ABI) you want to build for
                63c6ef6f-93f8-41f7-8e6f-f5597a367899-image.png

                under build android apk, make sure to check build aab
                a02afda7-fc32-454b-b483-0cb4b7572540-image.png

                that should be all you need to do

                M Offline
                M Offline
                morte
                wrote on last edited by morte
                #7

                @J-Hilk Looks like its Qt 6 related issue: in Qt 6.2 there separate kits for each ABI 'Clang arm64-v8a', 'Clang armeabi-v7a', 'Clang x86', 'Clang x86_64' each can generate single-arch AAB, but no way to build multi-arch AAB.

                J.HilkJ 1 Reply Last reply
                0
                • M morte

                  @J-Hilk Looks like its Qt 6 related issue: in Qt 6.2 there separate kits for each ABI 'Clang arm64-v8a', 'Clang armeabi-v7a', 'Clang x86', 'Clang x86_64' each can generate single-arch AAB, but no way to build multi-arch AAB.

                  J.HilkJ Offline
                  J.HilkJ Offline
                  J.Hilk
                  Moderators
                  wrote on last edited by
                  #8

                  @morte known bug
                  https://bugreports.qt.io/browse/QTBUG-88841

                  since the QtCompany builds its own precompiled binaries with cmake now, it also effects 6.0 to 6.2.

                  It is supposed to come with Qt 6.3


                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    morte
                    wrote on last edited by morte
                    #9

                    Since AAB become mandatory at Google Play from august 2021, strange that its impossible to generate multi-arch AAB package with Qt 6.2 LTS (neither using CMake or qmake). Theres note in docs that suggest upload single-arch ABB for each arch with different version codes. Would be good also see workaround to generate multi-arch AAB with 6.2.x.

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      Henri17
                      wrote on last edited by
                      #10

                      @morte said in single bundle (.aab file) with builds for multiple architectures:

                      multi-arch Android AAB

                      Multi ABIs are back
                      https://www.qt.io/blog/android-multi-abi-builds-are-back

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved