美文网首页
IntelliJ/Gradle Could not determ

IntelliJ/Gradle Could not determ

作者: addisJS | 来源:发表于2020-03-20 11:09 被阅读0次

    Checks:

    1. Navigate to:

      File >> Settings >> Build, Execution, Deployment >> Build Tools >> Gradle.

      Alongside Gradle JVM: make sure you select the correct version of Java. [图片上传失败...(image-d0e32c-1584673746279)]

    2. Navigate to: Right-Click 'Project Root Directory' & Select Open Module Settings. Project Structure windows shows-up. Make sure your JDK home path is added to the Platform Settings >> SDKs : JDK home path [图片上传失败...(image-cee635-1584673746279)]

    3. Still, on the same window Project Structure, select correct SDK relevant to your project under

      Project Settings >> Modules : Module SDK [图片上传失败...(image-22273a-1584673746279)]

    4. Fix/Solution: Nvavigate to & open: gradle/wrapper/gradle-wrapper.properties & update the distributionUrl version to the latest version. In my case (at the time of this post), my older version was:

      distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip

      And my latest version is:

      distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-bin.zip

      As shown below:

      [图片上传失败...(image-4f6f04-1584673746278)]

    5. In your build.gradle file make sure you set:

      sourceCompatibility = 11

    相关文章

      网友评论

          本文标题:IntelliJ/Gradle Could not determ

          本文链接:https://www.haomeiwen.com/subject/oaodyhtx.html