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. Android release APK and AAB

Android release APK and AAB

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 953 Views 2 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.
  • bunjee207B Offline
    bunjee207B Offline
    bunjee207
    wrote on last edited by
    #1

    Greetings Trolls,

    So I'm building a Qt application with make aab, it generates a release aab fine in the build/outputs/bundle/release folder.

    However it only generates a debug apk in the build/outputs/bundle/debug directory.

    Is there a way to enforce a release apk when building with make aab ?

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

      I think you need to calls make apk separately. It should run quickly as the only thing to do is new deployment - compilation was already done.

      (Z(:^

      1 Reply Last reply
      0
      • bunjee207B Offline
        bunjee207B Offline
        bunjee207
        wrote on last edited by bunjee207
        #3

        @sierdzio nope, I just tried that no matter how I call make apk, either before or after I always get the debug folder and nothing else.

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

          Qt always builds the APK in debug folder, even if it is compiled in release mode. However, I thought it was supposed to change in 5.14.

          (Z(:^

          1 Reply Last reply
          0
          • bunjee207B Offline
            bunjee207B Offline
            bunjee207
            wrote on last edited by bunjee207
            #5

            Solved it !

            With 5.14.2, I had to do the following to get both the apk and aab in the proper place:

            #----------------------------------------------------------------------------------------------
            # FIXME Qt android: We have to call androiddeployqt to generate a release apk.
            
            androiddeployqt="$external/Qt/$Qt5_version/bin/androiddeployqt"
            
            "$androiddeployqt" --release --apk --aab \
                               --input android-HelloSky-deployment-settings.json \
                               --output android-build \
                               --android-platform android-$SDK_version \
                               --jdk $JAVA_HOME
            
            #----------------------------------------------------------------------------------------------
            
            1 Reply Last reply
            3

            • Login

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