How to define Gradle's home in IDEA?

后端 未结 16 570
太阳男子
太阳男子 2020-12-04 04:37

I am trying to import a Gradle project into IntelliJ, and when I get to the Gradle Home textbox, it is not automatically populated, nor will typing in the path

相关标签:
16条回答
  • 2020-12-04 05:26

    Click New -> Project from existing sources -> Import gradle project...

    Then Idea recognized gradle automatically.

    0 讨论(0)
  • 2020-12-04 05:34

    This is where my gradle home is (Arch Linux):

    /usr/share/java/gradle/
    
    0 讨论(0)
  • 2020-12-04 05:38

    On a mac it should ideally be at : /Applications/Android Studio.app/Contents/gradle/gradle-2.14.1

    (Replace the version string with the latest)

    0 讨论(0)
  • 2020-12-04 05:38

    I couldn't get it to accept my Gradle JVM selection until I deleted a broken JDK

    Th window below is from File -> Other Settings -> Structure For New Projects...

    I had a red 1.8 JDK SDK entry here, once I deleted that Gradle JVM error below disappeared and I could move on to the next step

    0 讨论(0)
提交回复
热议问题