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. How to create an .aab from Qt 5.12.2 thus with single .apk's?
Forum Updated to NodeBB v4.3 + New Features

How to create an .aab from Qt 5.12.2 thus with single .apk's?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 956 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.
  • PowerNowP Offline
    PowerNowP Offline
    PowerNow
    wrote on last edited by
    #1

    Hi,
    is there a way to create an .aab from Qt 5.12.2 thus with single .apk's?

    I installed Qt 5.15.2 with Qt Creator 4.14.1., then via the maintainance tool the "free of bug" version 5.12.2 (originally I wanted the 5.12.1 but this was not selectable). Now I tried to build with Qt 5.12.2 release but got this error:

    FAILURE: Build failed with an exception.
    
    * Where:
    Build file 'R:\App\Code\build-cam-Android_Qt_5_12_2_Clang_arm64_v8a-Release\android-build\build.gradle' line: 74
    
    * What went wrong:
    A problem occurred evaluating root project 'android-build'.
    > Could not get unknown property 'qtMinSdkVersion' for DefaultConfig_Decorated{name=main, dimension=null, minSdkVersion=null, targetSdkVersion=null, renderscriptTargetApi=null, renderscriptSupportModeEnabled=null, renderscriptSupportModeBlasEnabled=null, renderscriptNdkModeEnabled=null, versionCode=null, versionName=null, applicationId=null, testApplicationId=null, testInstrumentationRunner=null, testInstrumentationRunnerArguments={}, testHandleProfiling=null, testFunctionalTest=null, signingConfig=null, resConfig=[en], mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}, mWearAppUnbundled=null} of type com.android.build.gradle.internal.dsl.DefaultConfig.
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 4s
    Warning: QML import could not be resolved in any of the import paths: com.fbo
    Warning: QML import could not be resolved in any of the import paths: com.dradar
    Warning: QML import could not be resolved in any of the import paths: com.dcross
    Warning: QML import could not be resolved in any of the import paths: com.scali
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
    Building the android package failed!
      -- For more information, run this command with --verbose.
    11:14:17: The process "C:\Programs\Qt\5.12.2\android_arm64_v8a\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project cam (kit: Android Qt 5.12.2 Clang arm64-v8a)
    When executing step "Build Android APK"
    

    In my manifest I have

    <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="28"/>
    

    and under Projects/Build Steps/Android build SDK

    android-28
    

    Do I have to create a new Template with new gradle files?

    The next step would be somehow to create an .aab from the singel .apks. But how?

    I hoped I can to this from QtCreator but it's unfortunately only available for Qt 5.15.2 build.

    Thanks...

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

      @PowerNow said in How to create an .aab from Qt 5.12.2 thus with single .apk's?:

      is there a way to create an .aab from Qt 5.12.2 thus with single .apk's?

      Not to my knowledge, no. I would like it as well :(

      Why do you need it ? AFAIK google still accepts individual apks for upload.


      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
      • PowerNowP Offline
        PowerNowP Offline
        PowerNow
        wrote on last edited by
        #3

        @J-Hilk Because I read here https://developer.android.com/guide/app-bundle

        Important: From August 2021, new apps will be required to publish with the Android App Bundle on Google Play. New apps larger than 150 MB are now supported by either Play Feature Delivery or Play Asset Delivery.
        

        I thought if I update from Qt 5.12.1 to Qt 5.15.2 this problem is solved. But unfortunately this version is regarding Sensors on Anroid completely buggy, I can't use it.

        https://forum.qt.io/topic/124787/qt-5-12-2-sensors-can-t-be-used-for-android-because-of-qtbug-77423/3

        So my idea was to build with Qt 5.12.1 and bundel with the new Qt Creator or somehow manually.

        J.HilkJ 1 Reply Last reply
        1
        • PowerNowP PowerNow

          @J-Hilk Because I read here https://developer.android.com/guide/app-bundle

          Important: From August 2021, new apps will be required to publish with the Android App Bundle on Google Play. New apps larger than 150 MB are now supported by either Play Feature Delivery or Play Asset Delivery.
          

          I thought if I update from Qt 5.12.1 to Qt 5.15.2 this problem is solved. But unfortunately this version is regarding Sensors on Anroid completely buggy, I can't use it.

          https://forum.qt.io/topic/124787/qt-5-12-2-sensors-can-t-be-used-for-android-because-of-qtbug-77423/3

          So my idea was to build with Qt 5.12.1 and bundel with the new Qt Creator or somehow manually.

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

          @PowerNow said in How to create an .aab from Qt 5.12.2 thus with single .apk's?:

          https://developer.android.com/guide/app-bundle

          oh, I hadn't read that yet, thats unfortunate.

          I'm not really in a position to upgrade the Qt version either ...


          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

          • Login

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