Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107121

Hangman example doesn't build for android with build tools >= 31.0.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.4.0
    • None
    • Android
    • 2022wk42FOQtforAndroid

    Description

      Configure with

      /usr/lib/qt-android-6.4-arm64-
      v8a/bin/qt-cmake -DQT_HOST_PATH=/usr/lib/qt-android-6.4-host/ -DANDROID_SDK_ROOT=/opt/android-sdk/ -DANDROID_NDK_ROOT
      =/opt/android-sdk/ndk/android-ndk-r23c ../../qtdoc/examples/demos/hangman/
      

      Result:

      Build-tool 33.0.0 is missing DX at /opt/android-sdk/build-tools/33.0.0/dx
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Could not determine the dependencies of task ':compileDebugJavaWithJavac'.
      > Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager.
      
      * 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
      

      There is no problem with the other examples like androidnotifier of qtbase, so the problem may not be the Build Tools revision 33.0.0

      Same problem with build tools 31.0.0 & 32.0.0

       

      Last build tools that works: 30.0.3

      dx is not shipped anymore in the build tools since 31.0.0

       

      A suggested patch is attached

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-107121
          # Subject Branch Project Status CR V

          Activity

            People

              rampe Rami Potinkara
              ban F S
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes