Uploaded image for project: 'Qt Tools for Android'
  1. Qt Tools for Android
  2. QTTA-256

QtGP Misleading error if no Qt/Tools/Ninja and no ninja in environment path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • QtGP 1.2
    • QtGP 1.1
    • QtGP: General
    • None
    • Android, Windows
    • 6b4a65472 (dev)

      Steps to reproduce:

      • Open a clean qtquickview_(kotlin or java) project
      • Make sure the environment does not have a Ninja in PATH or the path is not correct
      • Make sure Qt/Tools/Ninja does not exist or is renamed
      • Run application, it should fail and give you the error below

      Bolded the misleading part of error: * Exception is:
      org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:QtBuildTask'.
      Caused by: org.gradle.api.GradleException: No valid path to Ninja found. Checked locations:
          - Manually specified path in build.gradle QtBuild extension: C:\Qt\Tools\Ninja\ninja.exe
          - Environment PATH
          - Default Qt installation directory: C:\Qt\Tools\Ninja

       

      There is no manually defined path in build.gradle. We should print a differend error message in this case.

        For Gerrit Dashboard: QTTA-256
        # Subject Branch Project Status CR V

            teko Tero Koponen
            teko Tero Koponen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes