Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32441

Qt Creator does not automatically copy custom Android templates to project build directory

XMLWordPrintable

    • Android
    • 2025wk26s2QtforAndroid, 2025wk28s2QtforAndroid, 2025wk30s2QtforAndroid, 2025wk32s2QtforAndroid, 2025wk34s2QtforAndroid, 2025wk36s2QtforAndroid

      What?
      Android custom templates are not copied to build directory automatically after creation.

      How to reproduce
      Open or create a Qt Quick Application on Qt Creator and navigate to Projects -> Build Android APK -> Create Templates. You are prompted with a window asking for a destination for the Android package source directory.

      Assumption:
      After creating templates I assume that the custom templates are copied to the build directory's Android directory when building the project.

      What happens:
      Custom templates are not copied to build dir, instead some kind of default templates are copied. For this to happen you have to manually set the source directory of those templates in CmakeLists.txt with : https://doc.qt.io/qt-6/cmake-target-property-qt-android-package-source-dir.html.

      Could this possibly be automated?

        For Gerrit Dashboard: QTCREATORBUG-32441
        # Subject Branch Project Status CR V

            sheree_anne Sheree Morphett
            koalajar Konsta Alajärvi
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change