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
QtWS25 Last Chance

Where to give the path of Gradle

Scheduled Pinned Locked Moved Unsolved General and Desktop
20 Posts 4 Posters 12.2k Views
  • 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.
  • T Offline
    T Offline
    tomy
    wrote on 1 Mar 2017, 19:43 last edited by
    #2

    Is the only required place on the Android Studio?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 Mar 2017, 21:03 last edited by
      #3

      Hi,

      IIRC, it's already provided with the Android SDK under tools folder.

      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
      1
      • T Offline
        T Offline
        tomy
        wrote on 2 Mar 2017, 07:14 last edited by
        #4

        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.

        J 1 Reply Last reply 2 Mar 2017, 07:22
        0
        • T tomy
          2 Mar 2017, 07:14

          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.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 2 Mar 2017, 07:22 last edited by jsulm 3 Feb 2017, 07:22
          #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
          • T Offline
            T Offline
            tomy
            wrote on 2 Mar 2017, 07:38 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.

            J 1 Reply Last reply 2 Mar 2017, 07:46
            0
            • T tomy
              2 Mar 2017, 07:38

              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.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 2 Mar 2017, 07:46 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
              • T Offline
                T Offline
                tomy
                wrote on 2 Mar 2017, 07:49 last edited by tomy 3 Feb 2017, 07:49
                #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

                J 1 Reply Last reply 2 Mar 2017, 07:51
                0
                • T tomy
                  2 Mar 2017, 07:49

                  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

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 2 Mar 2017, 07:51 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
                  • T Offline
                    T Offline
                    tomy
                    wrote on 2 Mar 2017, 07:55 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
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 2 Mar 2017, 08:02 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
                      • T Offline
                        T Offline
                        tomy
                        wrote on 2 Mar 2017, 08:10 last edited by
                        #12

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

                        J 1 Reply Last reply 2 Mar 2017, 08:28
                        0
                        • T tomy
                          2 Mar 2017, 08:10

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

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 2 Mar 2017, 08:28 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

                          T 1 Reply Last reply 2 Mar 2017, 08:35
                          0
                          • J jsulm
                            2 Mar 2017, 08:28

                            @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).

                            T Offline
                            T Offline
                            tomy
                            wrote on 2 Mar 2017, 08:35 last edited by
                            #14

                            @jsulm
                            I think it was this.

                            J 1 Reply Last reply 2 Mar 2017, 08:43
                            0
                            • T tomy
                              2 Mar 2017, 08:35

                              @jsulm
                              I think it was this.

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 2 Mar 2017, 08:43 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
                              • T Offline
                                T Offline
                                tomy
                                wrote on 2 Mar 2017, 08:46 last edited by tomy 3 Feb 2017, 08:50
                                #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.

                                J 1 Reply Last reply 2 Mar 2017, 08:52
                                0
                                • T tomy
                                  2 Mar 2017, 08:46

                                  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.

                                  J Offline
                                  J Offline
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on 2 Mar 2017, 08:52 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 1 Reply Last reply 2 Mar 2017, 08:57
                                  0
                                  • J jsulm
                                    2 Mar 2017, 08:52

                                    @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 Offline
                                    J Offline
                                    J.Hilk
                                    Moderators
                                    wrote on 2 Mar 2017, 08:57 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.

                                    J 1 Reply Last reply 2 Mar 2017, 09:40
                                    1
                                    • J J.Hilk
                                      2 Mar 2017, 08:57

                                      @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

                                      :-)

                                      J Offline
                                      J Offline
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on 2 Mar 2017, 09:40 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
                                      • T Offline
                                        T Offline
                                        tomy
                                        wrote on 2 Mar 2017, 09:53 last edited by tomy 3 Feb 2017, 09:53
                                        #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

                                        11/20

                                        2 Mar 2017, 08:02

                                        • Login

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