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

Android CMake app signing cannot locate build-tools

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.1
    • Build System: CMake
    • None
    • Android

      With otherwise working Android CMake project, QtCreator is unable sign the app due to invalid path to build-tools.

      zipalign tool not found: C:/Android/Sdk/build-tools//zipalign.exe

      The problem is the missing build-tools version number, e.g. 29.0.2, in the path.

      I've analyzed the problem to be in Qt5AndroidSupport.cmake and the generated android_deployment_settings.json file, which lacks "sdkBuildToolsRevision" that androiddeployqt.exe expects to be present.

      When I hard code this to Qt5AndroidSupport.cmake, it starts to work:

      @QT_QML_IMPORT_PATH@
      "sdkBuildToolsRevision": "29.0.2",
      "ndk": "@ANDROID_NDK@",

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtbuildsystem Qt Build System Team
            jakoivik Jarkko Koivikko
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes