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

QtGP getSDKDirectory function is called twice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • QtGP 1.1
    • QtGP 1.0
    • QtGP: General
    • None
    • Android
    • 2a3926e44 (dev)

      QtGP getSDKDirectory function is being called twice when build is started. First by gradle since it's marked as @InputDirectory and second time by configure command. 

       

      This can be fixed ether by:

      • Changing @InputDirectory to @Internal.
      • Removing @InputDirectory and renaming the function.

       

      Output (look for getSDKDirectory):

      Executing tasks: [:app:assembleDebug] in project C:\Repos\Qt\qtdeclarative\examples\platforms\android\qtquickview_java
      
      > Configure project :app
      apply
      isIdeaSync
      getBuildDirectory
      getSDKDirectory
      Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
      AGPBI: {"kind":"warning","text":"We recommend using a newer Android Gradle plugin to use compileSdk = 34\n\nThis Android Gradle plugin (7.4.1) was tested up to compileSdk = 33\n\nThis warning can be suppressed by adding\n    android.suppressUnsupportedCompileSdk=34\nto this project's gradle.properties\n\nThe build will continue, but you are strongly encouraged to update your project to\nuse a newer Android Gradle Plugin that has been tested with compileSdk = 34","sources":[{}]}
      > Task :app:QtBuildTask
      getSDKDirectory
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes