I keep getting 'gradle' is not recognized as an in...
# gradle
t
I keep getting 'gradle' is not recognized as an internal or external command, operable program or batch file.
e
if you are using the Gradle Wrapper (recommended), you should be running
gradlew
t
@ephemient how do I set that up?
e
how did you set your project up in the first place?
Android Studio defaults to using the gradle wrapper, for example
t
@ephemient I didn't set up a project.. I just checked whether I had gradle installed and I hadn't.
@ephemient i am just looking to install gradle
t
@ephemient so does it come with Android Studio when I create a new project?
@ephemient by default for my projects I'm not using gradle/gradle wrapper I'm just using the default
I mean in IntelliJ not AS
e
just installed bare IntelliJ to test. ok, it seems it doesn't install a wrapper by default. that is easy to resolve, just run the "gradle wrapper" task from within the IDE and it'll generate all the necessary files
if you open the Gradle tab on the right-hand side, there is a [G Execute Gradle Task] button, just click that and enter "wrapper" (so the whole command looks like "gradle wrapper")
t
ok will try
@ephemient I got an error: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-6.8-bin.zip'. 🪦
e
it should have more details below
t
@ephemient well it doesn't:
e
what does the rest of the window say
t
@ephemient Nothing... I saw some other people had this issue on Soflow
e
oh it's not running Gradle at all, nevermind the wrapper
t
@ephemient ok so what do I do now?
e
in any case at this point this is definitely not a Kotlin issue so take it elsewhere
t
@ephemient to where? New York? Shanghai? 😕
e
Stack Overflow, JetBrains user groups, YouTrack, ... wherever appropriate. here is for Kotlin
t
@ephemient k
205 Views