Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Where to give the path of Gradle
Forum Updated to NodeBB v4.3 + New Features

Where to give the path of Gradle

Scheduled Pinned Locked Moved Unsolved General and Desktop
21 Posts 5 Posters 12.8k Views 2 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.
  • tomyT tomy

    I don't know where that address is, on qt Creator, Android Studio, SDK Manager or etc.

    I have Gradle 3.3 installed on my windows machine:
    alt text

    And I've put the path of Gradle for just these sections on Android Studio, as follows:
    alt text

    The problem is that I recently get this error when I run Android studio:
    alt text

    I tried to fix this but no prosperity yet. :(

    PS: I had installed some required pachages for SDK and now, too, it's installing/updating some new ones else. I don't know if installing/updating will solve the issue or not.

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

    @tomy Why do you want to use your own Gradle installation?
    Regarding the error: why did you activate "Offline work"?

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

    1 Reply Last reply
    0
    • tomyT Offline
      tomyT Offline
      tomy
      wrote on last edited by
      #6

      I used my Gradle because I thought it's more complete/update than the Android Studio's one.

      And about the second question: Honestly, since many times I'm not connected to the Internet when using the Qt Creator (which is apparently in communication with the settings of Android Studio) when developing apps for android, so I thought that option should be checked.

      jsulmJ 1 Reply Last reply
      0
      • tomyT tomy

        I used my Gradle because I thought it's more complete/update than the Android Studio's one.

        And about the second question: Honestly, since many times I'm not connected to the Internet when using the Qt Creator (which is apparently in communication with the settings of Android Studio) when developing apps for android, so I thought that option should be checked.

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

        @tomy Sorry, but what you are doing is asking for problems. You should use pre-installed Gradle (it is even marked as recommended) unless you really need your own installation and you know what you are doing. And don't activate "Offline work" - if you do not have internet connection then you're offline anyway, but since Gradle sometimes needs to download some stuff (don't ask me why) you will need to disable this option.

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

        1 Reply Last reply
        1
        • tomyT Offline
          tomyT Offline
          tomy
          wrote on last edited by tomy
          #8

          OK, I don't ask why! :-)

          I installed Gradle 3.3 (with its not easy process) because that docs have told me this!!!!!!

          After doing what you said, the error was gone.
          thanks

          jsulmJ 1 Reply Last reply
          0
          • tomyT tomy

            OK, I don't ask why! :-)

            I installed Gradle 3.3 (with its not easy process) because that docs have told me this!!!!!!

            After doing what you said, the error was gone.
            thanks

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

            @tomy Which doc is it?
            I guess a default Gradle installation does not contain everything to keep it small. If something is needed and is not yet installed it is downloaded.

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

            1 Reply Last reply
            0
            • tomyT Offline
              tomyT Offline
              tomy
              wrote on last edited by
              #10

              You say if I rely on the current settings, it will be enough (and for some reason, if it's needed, it will install the required stuff itself)?

              When I asked to run my own Windows app for Android, guys recommended that I use the Docs. There it was written I should install Gradle.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #11

                I concur with @jsulm, last time I used gradle for my project, the first thing it did was to download everything that it needed to continue the work.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • tomyT Offline
                  tomyT Offline
                  tomy
                  wrote on last edited by
                  #12

                  OK, I say if I leave the settings as they are (like below), it's enough, yes??
                  alt text

                  jsulmJ 1 Reply Last reply
                  0
                  • tomyT tomy

                    OK, I say if I leave the settings as they are (like below), it's enough, yes??
                    alt text

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

                    @tomy Yes should be fine, just try.
                    I asked which doc you're following because maybe it should be fixed (to not to ask users to install their own Gradle).

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

                    tomyT 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @tomy Yes should be fine, just try.
                      I asked which doc you're following because maybe it should be fixed (to not to ask users to install their own Gradle).

                      tomyT Offline
                      tomyT Offline
                      tomy
                      wrote on last edited by
                      #14

                      @jsulm
                      I think it was this.

                      jsulmJ 1 Reply Last reply
                      0
                      • tomyT tomy

                        @jsulm
                        I think it was this.

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

                        @tomy To be honest I do not see where it says you have to install Gradle by yourself.

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

                        1 Reply Last reply
                        0
                        • tomyT Offline
                          tomyT Offline
                          tomy
                          wrote on last edited by tomy
                          #16

                          It says:

                          Requirements

                          To use Qt Creator to develop Qt applications for Android, you need the following:

                          Java SE Development Kit (JDK) version 6, or later
                          A build tool for building application packages for Android devices:
                          Apache Ant 1.8.0, or later
                          Gradle
                          ...

                          And when the user clicks on Gradle, it takes them to this page:
                          https://gradle.org/
                          Where they are presumably asked to install Gradle

                          Anyway, the problem is seemingly solved for me and if you like make a suggestions for the holders of Docs please to modify this.

                          jsulmJ 1 Reply Last reply
                          0
                          • tomyT tomy

                            It says:

                            Requirements

                            To use Qt Creator to develop Qt applications for Android, you need the following:

                            Java SE Development Kit (JDK) version 6, or later
                            A build tool for building application packages for Android devices:
                            Apache Ant 1.8.0, or later
                            Gradle
                            ...

                            And when the user clicks on Gradle, it takes them to this page:
                            https://gradle.org/
                            Where they are presumably asked to install Gradle

                            Anyway, the problem is seemingly solved for me and if you like make a suggestions for the holders of Docs please to modify this.

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

                            @tomy Yes, it says Gradle is needed, but if you read further then it says that it is integrated:
                            "On Android, applications are distributed in specially structured type of ZIP packages called APK. You can use either Ant or Gradle to build APKs. Using Gradle has the following benefits:

                            It is 25 to 50 percent faster than Ant when rebuilding packages.
                            It is integrated with Android Studio."
                            

                            The doc does not say you have to install it.
                            If you read the documentation you should not immediately install all requirements listed. Instead you should read further there all set-up steps are explained.

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

                            J.HilkJ 1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @tomy Yes, it says Gradle is needed, but if you read further then it says that it is integrated:
                              "On Android, applications are distributed in specially structured type of ZIP packages called APK. You can use either Ant or Gradle to build APKs. Using Gradle has the following benefits:

                              It is 25 to 50 percent faster than Ant when rebuilding packages.
                              It is integrated with Android Studio."
                              

                              The doc does not say you have to install it.
                              If you read the documentation you should not immediately install all requirements listed. Instead you should read further there all set-up steps are explained.

                              J.HilkJ Offline
                              J.HilkJ Offline
                              J.Hilk
                              Moderators
                              wrote on last edited by
                              #18

                              @jsulm said in Where to give the path of Gradle:

                              The doc does not say you have to install it.
                              If you read the documentation you should not immediately install all requirements listed. Instead you should read further there all set-up steps are explained.

                              that is right,

                              warnings come after the instructions

                              :-)


                              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                              Q: What's that?
                              A: It's blue light.
                              Q: What does it do?
                              A: It turns blue.

                              jsulmJ 1 Reply Last reply
                              1
                              • J.HilkJ J.Hilk

                                @jsulm said in Where to give the path of Gradle:

                                The doc does not say you have to install it.
                                If you read the documentation you should not immediately install all requirements listed. Instead you should read further there all set-up steps are explained.

                                that is right,

                                warnings come after the instructions

                                :-)

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

                                @J.Hilk Actually list of requirements is not installation instruction. Installation instructions come afterwards :-)

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

                                1 Reply Last reply
                                0
                                • tomyT Offline
                                  tomyT Offline
                                  tomy
                                  wrote on last edited by tomy
                                  #20

                                  They could have added a simple line like:
                                  If you install Android Studio and want to use Gradle instead of Ant, "you do not need to install it manually" because the Android Studio contains it itself.

                                  That line should have been added at, of course, the beginning not the end.

                                  This is my opinion.

                                  1 Reply Last reply
                                  0
                                  • Nick BennettN Offline
                                    Nick BennettN Offline
                                    Nick Bennett
                                    wrote last edited by
                                    #21

                                    It looks like that doc page was updated. A requirement line encompasses all the Android requirements, and it states that QC can download these for you.

                                    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