Android Studio terminal does not recognize gradle as a command

I have Android Studio and its Gradle build tool. However, inside Android Studio terminal (not windows cmd ..) if I type

gradle tasks

      

I get

'gradle' is not recognized as an internal or external command,
operable program or batch file.

      

How is this possible?
If Android Studio is using gradle then gradle is not already installed?
to add more confusion, when I look at C: \ Program Files I can't see the gradle folder at all.
How do Android Studio and gradle work?

thank

+3


source to share


1 answer


On Windows you have to use the command gradlew

(it uses the gradlew.bat file in the root of the project).



On Linux and Mac, you must use the command gradle

.

+4


source







All Articles