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. Error building Qt app for Android with Qt Creator - installed SDK tools version (26.1.1) does not include Gradle scripts
Forum Updated to NodeBB v4.3 + New Features

Error building Qt app for Android with Qt Creator - installed SDK tools version (26.1.1) does not include Gradle scripts

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 4 Posters 5.9k 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.
  • S Offline
    S Offline
    Sungyong
    wrote on last edited by
    #1

    Hi,

    When I tried to build QtFireExample with my QtCreator, failed with below error message.

    The installed SDK tools version (26.1.1) does not include Gradle scripts. The minimum Qt version required for Gradle build to work is 5.9.0/5.6.3 Error while building/deploying project QtFirebaseExample (kit: Android) When executing step "Build Android APK"

    My android studio is 3.2.1. And SDK tools 26.1 is also installed.
    qt version is also above 5.9.0
    What I did mistake?

    ❯ qmake --version
    QMake version 3.1
    Using Qt version 5.12.0 in /usr/local/Cellar/qt/5.12.0/lib

    jsulmJ raven-worxR 2 Replies Last reply
    0
    • S Sungyong

      Hi,

      When I tried to build QtFireExample with my QtCreator, failed with below error message.

      The installed SDK tools version (26.1.1) does not include Gradle scripts. The minimum Qt version required for Gradle build to work is 5.9.0/5.6.3 Error while building/deploying project QtFirebaseExample (kit: Android) When executing step "Build Android APK"

      My android studio is 3.2.1. And SDK tools 26.1 is also installed.
      qt version is also above 5.9.0
      What I did mistake?

      ❯ qmake --version
      QMake version 3.1
      Using Qt version 5.12.0 in /usr/local/Cellar/qt/5.12.0/lib

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Sungyong You should install Gradle as well. I'm not sure but doesn't QtCreator ask you to do so (or maybe it was Android Studio where I saw it).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Sungyong You should install Gradle as well. I'm not sure but doesn't QtCreator ask you to do so (or maybe it was Android Studio where I saw it).

        S Offline
        S Offline
        Sungyong
        wrote on last edited by
        #3

        @jsulm Thank you for your answer.
        As your advice, I installed newest gradle which has version 5.1.
        But still build failed with same message. Do you have any idea?

        ❯ gradle -version

        Welcome to Gradle 5.1!

        Here are the highlights of this release:

        • Control which dependencies can be retrieved from which repositories
        • Production-ready configuration avoidance APIs

        For more details see https://docs.gradle.org/5.1/release-notes.html


        Gradle 5.1

        Build time: 2019-01-02 18:57:47 UTC
        Revision: d09c2e354576ac41078c322815cc6db2b66d976e

        Kotlin DSL: 1.1.0
        Kotlin: 1.3.11
        Groovy: 2.5.4
        Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
        JVM: 1.8.0_191 (Oracle Corporation 25.191-b12)
        OS: Mac OS X 10.14.2 x86_64

        jsulmJ 1 Reply Last reply
        0
        • S Sungyong

          @jsulm Thank you for your answer.
          As your advice, I installed newest gradle which has version 5.1.
          But still build failed with same message. Do you have any idea?

          ❯ gradle -version

          Welcome to Gradle 5.1!

          Here are the highlights of this release:

          • Control which dependencies can be retrieved from which repositories
          • Production-ready configuration avoidance APIs

          For more details see https://docs.gradle.org/5.1/release-notes.html


          Gradle 5.1

          Build time: 2019-01-02 18:57:47 UTC
          Revision: d09c2e354576ac41078c322815cc6db2b66d976e

          Kotlin DSL: 1.1.0
          Kotlin: 1.3.11
          Groovy: 2.5.4
          Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
          JVM: 1.8.0_191 (Oracle Corporation 25.191-b12)
          OS: Mac OS X 10.14.2 x86_64

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Sungyong You should install Gradle through QtCreator or (more likely, I'm not Android expert) through Android SDK.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Sungyong

            Hi,

            When I tried to build QtFireExample with my QtCreator, failed with below error message.

            The installed SDK tools version (26.1.1) does not include Gradle scripts. The minimum Qt version required for Gradle build to work is 5.9.0/5.6.3 Error while building/deploying project QtFirebaseExample (kit: Android) When executing step "Build Android APK"

            My android studio is 3.2.1. And SDK tools 26.1 is also installed.
            qt version is also above 5.9.0
            What I did mistake?

            ❯ qmake --version
            QMake version 3.1
            Using Qt version 5.12.0 in /usr/local/Cellar/qt/5.12.0/lib

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            @Sungyong
            what QtCreator version are you using?
            Did you install the build-tools in your Android SDK Manager?

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Sungyong
              wrote on last edited by
              #6

              Thanks all for reply.

              @jsulm How can I install gRalde throught QtCreator?
              From Qt Document (http://doc.qt.io/qtcreator/creator-developing-android.html), it says as below.
              Gradle is delivered with Qt 5.9, and later. Because Gradle scripts are not delivered with Android SDK Tools since version 26.0.0, they are delivered with Qt 5.9 and 5.6.3.

              @raven-worx
              My environments are below.

              MacOS 10.14.2
              Qt Creator 4.8.0
              Based on Qt 5.12.0 (Clang 10.0 (Apple), 64 bit
              Android Studio 3.2.1 (it includes SDK)

              • SDK Version: 26.1.1
              • NDK version: 16.1.4479499
              L 1 Reply Last reply
              0
              • S Sungyong

                Thanks all for reply.

                @jsulm How can I install gRalde throught QtCreator?
                From Qt Document (http://doc.qt.io/qtcreator/creator-developing-android.html), it says as below.
                Gradle is delivered with Qt 5.9, and later. Because Gradle scripts are not delivered with Android SDK Tools since version 26.0.0, they are delivered with Qt 5.9 and 5.6.3.

                @raven-worx
                My environments are below.

                MacOS 10.14.2
                Qt Creator 4.8.0
                Based on Qt 5.12.0 (Clang 10.0 (Apple), 64 bit
                Android Studio 3.2.1 (it includes SDK)

                • SDK Version: 26.1.1
                • NDK version: 16.1.4479499
                L Offline
                L Offline
                lduboeuf
                wrote on last edited by
                #7

                @Sungyong I was stuck like you and finally found a workaround like this:

                Install "Android armV7" and "x86" with Qt MaintenanceTool (under Qt X version).
                Now you will see the two kits added to QtCreator.
                I selected armV7 and build went fine.

                1 Reply Last reply
                0

                • Login

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