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
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
- Create a simple Android Studio project
- Have QtTAS installed and set-up
- Have QtGP installed
- Import a simple Qt CMake based project
- Adjust the build.gradle.kts file to use qtDirKit property
QtBuild { projectPath = file("../ExampleProject") qtKitDir = file("C:/Qt/6.8.0/android_x86_64") }
- Run the project on Android device that is based on aarch64 architecture
- 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.