Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Build 32+64 bit APK using Qt Creator?
Forum Updated to NodeBB v4.3 + New Features

Build 32+64 bit APK using Qt Creator?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
10 Posts 8 Posters 3.2k Views 5 Watching
  • 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.
  • K Offline
    K Offline
    KarelB
    wrote on last edited by
    #1

    As of Aug 2019 Google Play Store requires the APK files to contain both a 32bit and 64bit version.
    As far as I can tell, Qt Creator can only build APK's for a single target, so either ARM 32 (v7) or 64bit (v8), not both.
    Hopefully I'm wrong here and someone can point to me an example :)
    If not, does anyone know it this will be added to Qt Creator.

    According to this article: https://developer.android.com/distribute/best-practices/develop/64-bit
    For Android Studio it's just a matter of adding the additional platforms to ndk.abiFilters. However, that whole section isn't used by the Qt Creator's Gradle configuration.

    Without this functionality it will be impossible to publish APKs created with Qt Creator for 32 bit devices.

    What options do we have?
    Can we export the Qt-project so that we can build with Android Studio, similar to XCode?

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      That's a question better asked on the Qt Creator mailing list. You'll find there Qt Creator's developers/maintainers. This forum is more user oriented.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

        Very curious about this too!

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Steffen Schulze
          wrote on last edited by
          #4

          +1 i haven't found an approach to this topic yet either

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

            You can build 32 bit and 64 bit separately and upload both to Play Store. It's fully supported and your users won't have to download APK that's 2x bigger.

            (Z(:^

            mmjvoxM 1 Reply Last reply
            1
            • sierdzioS sierdzio

              You can build 32 bit and 64 bit separately and upload both to Play Store. It's fully supported and your users won't have to download APK that's 2x bigger.

              mmjvoxM Offline
              mmjvoxM Offline
              mmjvox
              wrote on last edited by mmjvox
              #6

              @sierdzio

              thanks
              but how to upload each file to play store? There is no separate place to upload

              sierdzioS 1 Reply Last reply
              0
              • P Offline
                P Offline
                Peterway
                wrote on last edited by
                #7

                The APK file is a ZIP
                Through QtCreator it is necessary to create both signed 32 and 64 bit versions.
                unzip both files and move the lib/arm64-v8a folder to the 32-bit folder.
                recreate the apk file using the zip command
                run zipalign and apksigner to create the APK file to send to Google Play Store

                mmjvoxM 1 Reply Last reply
                2
                • mmjvoxM mmjvox

                  @sierdzio

                  thanks
                  but how to upload each file to play store? There is no separate place to upload

                  sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  @mmjvox said in Build 32+64 bit APK using Qt Creator?:

                  @sierdzio

                  thanks
                  but how to upload each file to play store? There is no separate place to upload

                  You just upload it the normal way.

                  Here is some more info: https://stackoverflow.com/questions/42049253/publish-multiple-apks-to-google-play-store and https://developer.android.com/google/play/publishing/multiple-apks.html#Rules

                  (Z(:^

                  mmjvoxM 1 Reply Last reply
                  2
                  • P Peterway

                    The APK file is a ZIP
                    Through QtCreator it is necessary to create both signed 32 and 64 bit versions.
                    unzip both files and move the lib/arm64-v8a folder to the 32-bit folder.
                    recreate the apk file using the zip command
                    run zipalign and apksigner to create the APK file to send to Google Play Store

                    mmjvoxM Offline
                    mmjvoxM Offline
                    mmjvox
                    wrote on last edited by
                    #9

                    @Peterway
                    i tested this last year but 64bit libs did not works and Android always loads 32bis libs on 64bit devices
                    Perhaps I made a mistake

                    1 Reply Last reply
                    0
                    • sierdzioS sierdzio

                      @mmjvox said in Build 32+64 bit APK using Qt Creator?:

                      @sierdzio

                      thanks
                      but how to upload each file to play store? There is no separate place to upload

                      You just upload it the normal way.

                      Here is some more info: https://stackoverflow.com/questions/42049253/publish-multiple-apks-to-google-play-store and https://developer.android.com/google/play/publishing/multiple-apks.html#Rules

                      mmjvoxM Offline
                      mmjvoxM Offline
                      mmjvox
                      wrote on last edited by
                      #10

                      @sierdzio
                      Thanks my app successfully released

                      1 Reply Last reply
                      1

                      • Login

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