The project uses Gradle 2.12 which is incompatible with IDEA running on Java 10 or newer

前端 未结 4 4118
难免孤独
难免孤独 2021-02-20 15:52

When i import my Gradle Java project with Intellij Idea i get error

The project uses Gradle 2.12 which is incompatible with IDEA running on Java 10          


        
相关标签:
4条回答
  • 2021-02-20 16:31

    I have found a solution for this. On Intellij press Ctrl+shift+a -> Switch Boot JDK ->choose JDK version

    Another solution is use Intellij Utimate Edition. Choose file/Setting and configure Gradle and Java version

    0 讨论(0)
  • 2021-02-20 16:32

    JetBrains promised to fix in version 2020.1.1 : https://youtrack.jetbrains.com/issue/IDEA-237220

    0 讨论(0)
  • 2021-02-20 16:45

    In case if you didn't find switch boot JDK option in IDEA you can use
    "choose runtime" plugin.

    https://www.jetbrains.com/help/idea/switching-boot-jdk.html

    if you want it in action, try Ctrl + shift + A then type choose runtime , in the dialog choose run time select the runtime you want.

    0 讨论(0)
  • 2021-02-20 16:46

    On Intellij press Ctrl+shift+a -> Choose Runtime ->choose JDK version

    If you don't see the option, then download and install "Choose Runtime"(https://plugins.jetbrains.com/plugin/12836-choose-runtime) from Marketplace

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