Where to give the path of Gradle
-
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 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.
-
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 -
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.
-
@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). -
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
:-)
-
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.