Where to give the path of Gradle
-
wrote on 1 Mar 2017, 16:48 last edited by tomy 3 Jan 2017, 16:49
-
wrote on 1 Mar 2017, 19:43 last edited by
Is the only required place on the Android Studio?
-
Hi,
IIRC, it's already provided with the Android SDK under tools folder.
-
wrote on 2 Mar 2017, 07:14 last edited by
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:
And I've put the path of Gradle for just these sections on Android Studio, as follows:
The problem is that I recently get this error when I run Android studio:
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.
-
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:
And I've put the path of Gradle for just these sections on Android Studio, as follows:
The problem is that I recently get this error when I run Android studio:
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.
Lifetime Qt Championwrote on 2 Mar 2017, 07:22 last edited by jsulm 3 Feb 2017, 07:22@tomy Why do you want to use your own Gradle installation?
Regarding the error: why did you activate "Offline work"? -
wrote on 2 Mar 2017, 07:38 last edited by
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.
-
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.
@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.
-
wrote on 2 Mar 2017, 07:49 last edited by tomy 3 Feb 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 -
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@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. -
wrote on 2 Mar 2017, 07:55 last edited by
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.
-
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.
-
wrote on 2 Mar 2017, 08:10 last edited by
-
@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). -
@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). -
@tomy To be honest I do not see where it says you have to install Gradle by yourself.
-
wrote on 2 Mar 2017, 08:46 last edited by tomy 3 Feb 2017, 08:50
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 GradleAnyway, the problem is seemingly solved for me and if you like make a suggestions for the holders of Docs please to modify this.
-
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 GradleAnyway, the problem is seemingly solved for me and if you like make a suggestions for the holders of Docs please to modify this.
@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. -
@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.@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
:-)
-
@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.Hilk Actually list of requirements is not installation instruction. Installation instructions come afterwards :-)
-
wrote on 2 Mar 2017, 09:53 last edited by tomy 3 Feb 2017, 09:53
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.
7/20