Using Qt Gradle Plugin
Qt Gradle Plugin can be used from the command line. The following are the commands available.
Building the Qt application .aar:
gradlew QtBuildTask
Listing other available tasks:
gradlew tasks --group QtProject
If you want to use a build of Qt that was not obtained through the online installer, you need to modify the qtKitDir
variable defined in your project's build.gradle(.kts)
file. The file is in your project's <yourappname>/app
folder. Its path could be, for example: qtquickview_java/app/build.gradle
qtKitDir = file('home/<your-username>/<your-Qt-builds>/<your-Qt-kit>')
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.