Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. The installed SDK tools version (11.0) does not include Gradle scripts
Forum Updated to NodeBB v4.3 + New Features

The installed SDK tools version (11.0) does not include Gradle scripts

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 367 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    diego-qt
    wrote on last edited by
    #1

    Hello.

    I've completely installed Qt Creator and its Android dependencies (OpenJDK, Gradle, SDK, NDK) through the terminal in my Ubuntu (https://doc.qt.io/qt-5/android-getting-started.html), and I built Qt5 from source in terminal too (https://doc.qt.io/qt-5/android-building.html). I then everything else that is asked in https://doc.qt.io/qtcreator/creator-developing-android.html (as I didn't find a way to do it on terminal).

    But when I tried to test one of Qt examples for Android, I got the following error:

    The installed SDK tools version (11.0) does not include Gradle scripts. The minimum Qt version required for Gradle build to work is 5.9.0/5.6.3
    Erreur lors de la compilation/déploiement du projet touchinteraction (kit : Android)
    When executing step "Build Android APK"
    

    And this is weird because I manually downloaded and installed Gradle following the tutorial in its website (https://gradle.org/install/).

    So as you can see I'm trying to find a way to install everything that Qt for Android requires, from the terminal. This means that I haven't downloaded Qt installer nor Android Studio.

    As I read in the forums, Qt Creator automatically installs Gradle when you installed it via the Qt installer, but since I don't have that, I'm guessing the problem is that I haven't placed the Gradle binaries in the right place. I installed it in /opt/gradle, as per the tutorial mentioned above.

    So could anyone confirm if my theory is right by telling me where your Gradle binaries are? If not, telling me where I'm wrong please?

    For info:

    $ qmake --version
    QMake version 3.1
    Using Qt version 5.15.3 in /usr/lib/x86_64-linux-gnu
    $ gradle --version
    
    ------------------------------------------------------------
    Gradle 8.3
    ------------------------------------------------------------
    
    Build time:   2023-08-17 07:06:47 UTC
    Revision:     8afbf24b469158b714b36e84c6f4d4976c86fcd5
    
    Kotlin:       1.9.0
    Groovy:       3.0.17
    Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
    JVM:          17.0.8.1 (Private Build 17.0.8.1+1-Ubuntu-0ubuntu122.04)
    OS:           Linux 6.2.0-33-generic amd64
    
    1 Reply Last reply
    0
    • D Offline
      D Offline
      diego-qt
      wrote on last edited by
      #2

      Actually it was all good. I didn't realize that I had another Android kit selected and that was not correctly adjusted. For the correct kit to appear automatically I added the path of qmake that I built from source in Tools > Options > Kits > Qt Versions.
      I realized I had two Android kits, so I selected the right one and I had no longer this error (instead I had other ones, but that is another story).

      1 Reply Last reply
      0
      • D diego-qt has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved