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. Building Android App Bundle fails with `Task 'bundle' not found`
Forum Updated to NodeBB v4.3 + New Features

Building Android App Bundle fails with `Task 'bundle' not found`

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

    I'm trying to build an Android App Bundle from QtCreator.
    I'm using Qt5.14.1, platform-29 and NDK 21.0.
    Building an empty QML project works fine and results in an aab file

    However, building my own project fails with

    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Task 'bundle' not found in root project 'android-build'. Some candidates are: 'build'.
    
    * Try:
    Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Building the android package failed!
    

    gradlew tasks looks like below and indeed doesn't contain a 'bundle' task

    Build tasks
    -----------
    assemble - Assembles all variants of all applications and secondary packages.
    assembleAndroidTest - Assembles all the Test applications.
    assembleDebug - Assembles all Debug builds.
    assembleRelease - Assembles all Release builds.
    build - Assembles and tests this project.
    buildDependents - Assembles and tests this project and all projects that depend on it.
    buildNeeded - Assembles and tests this project and all projects it depends on.
    clean - Deletes the build directory.
    compileDebugAndroidTestSources
    compileDebugSources
    compileDebugUnitTestSources
    compileReleaseSources
    compileReleaseUnitTestSources
    mockableAndroidJar - Creates a version of android.jar that's suitable for unit tests.
    

    where the empty QML project did contain a bundle task

    Any ideas? Suggestions on how to proceed from here?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Marc_Van_Daele
      wrote on last edited by
      #2

      Apparently, I had an older gradlew hanging around which interfered

      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