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

QML for Android - wrong Android ABI kit results in a non-verbose error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.0 Beta4
    • None
    • Android studio version: Koala 2024.1.1
      Qt version: Qt 6.8 Beta 4 - installed through Maintenance Tool
      QtTAS: 2.0
      Build host: Windows 11
      Target device: Samsung Tab S9 - Android 14
    • Android

    Description

      Description

      When user builds an application using Qt Tools for Android Studio (QtTAS) and Qt Gradle Plugin (QtGP), and if build.gradle.kts has specified qtDirKit that doesn't match the target Android ABI, error noted in runtime log doesn't point to the cause of the issue.

       

      2024-09-06 15:40:14.396 31882-31882 QtLoader                io....carsettings.carsettingskotlin  E  The native libraries directory is null or empty 

       

      How to reproduce

      1. Create a simple Android Studio project
      2. Have QtTAS installed and set-up
      3. Have QtGP installed
      4. Import a simple Qt CMake based project
      5. Adjust the build.gradle.kts file to use qtDirKit property
      QtBuild {
          projectPath = file("../ExampleProject")
          qtKitDir = file("C:/Qt/6.8.0/android_x86_64")
      }
      
      1. Run the project on Android device that is based on aarch64 architecture
      2. Observe the logs

      Expected outcome

      When user builds an application using QtTAS and QtGP, and if build.gradle.kts has specified qtDirKit that doesn't match the target Android ABI, error noted in runtime log should point to the cause of the issue.

      Example log proposal

      2024-09-06 15:40:14.396 31882-31882 QtLoader                io....carsettings.carsettingskotlin  E  Qt libraries for the target architecture {ARCHITECTURE} are not installed. Please adjust values in gradle build script.

      Attachments

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

        Activity

          People

            nikunj Nikunj Arora
            bruno.vunderl Bruno Vunderl
            Bruno Vunderl Bruno Vunderl
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes