3

Where does a standard Android Studio install under linux place the gradle executable?

I want to run it from the cmd line, but can't find it to add to my PATH

bph
  • 10,728
  • 15
  • 60
  • 135

1 Answers1

4

By default Android Studio uses a Gradle wrapper. You can find the gradlew file in the project root. Check this link

If you want you can install your own Gradle version and use it by command line. In that case you can tell Android Studio to use that version instead of the wrapper

Alberto S.
  • 7,409
  • 6
  • 27
  • 46
  • I took a look at the gradlew script, can't see an obvious call to a gradle exe in there - maybe its running a java implementation of gradle then , i.e. the last line in the script? If I install gradle how do you get android studio to use that instead. I don't want to inadvertently break anything by having two gradles – bph Jan 28 '16 at 14:25
  • 1
    maybe I should just read this - https://docs.gradle.org/current/userguide/gradle_wrapper.html – bph Jan 28 '16 at 14:36
  • The same is for Windows. – CoolMind Jul 22 '20 at 12:33